filename.h

来自「关于文件夹共享的一个程序」· C头文件 代码 · 共 41 行

H
41
字号
// FileName.h: interface for the CFileName class.
//
//////////////////////////////////////////////////////////////////////
//
// This source is part of CShellTree - Selom Ofori
// 
// Version: 1.02 (any previously unversioned copies are older/inferior
//
// This code is free for all to use. Mutatilate it as much as you want
// See MFCENUM sample from microsoft

#if !defined(AFX_FILENAME_H__DD386565_9863_11D1_B10E_40F603C10000__INCLUDED_)
#define AFX_FILENAME_H__DD386565_9863_11D1_B10E_40F603C10000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CFileName  
{
public:
	CFileName(CString szFileName="");
	virtual ~CFileName();

	void		SetFileName(CString szFileName);
	CString		GetFileName();
	CString		GetRoot();
	CString		GetFileTitle();
	CString		GetDescription();
	bool		Exist();

private:
	CString		m_szFileName;
	char		m_szDrive[_MAX_DRIVE];
	char		m_szDir[_MAX_DIR];
	char		m_szFname[_MAX_FNAME];
	char		m_szExt[_MAX_EXT];
};

#endif // !defined(AFX_FILENAME_H__DD386565_9863_11D1_B10E_40F603C10000__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?