📄 ngsplitpath.h
字号:
#ifndef __NGSplitPath_H__
#define __NGSplitPath_H__
//////////////////////////////////////////////////////////////////////
// NGSplitPath.h : interface for the CNGSplitPath class
// (c) 1999, Kevin Lussier
//
// Modified to use Hungarian notation by Anna-Jayne Metcalfe, 29/2/2000
//////////////////////////////////////////////////////////////////////
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class NGLIB_EXT_CLASS CNGSplitPath
{
// Construction
public:
CNGSplitPath(LPCTSTR lpszPath = NULL);
virtual ~CNGSplitPath(void) {}
// Operations
public:
BOOL Split(LPCTSTR lpszPath);
CString GetPath(void) const { return szPath; }
CString GetDrive(void) const { return szDrive; }
CString GetDirectory(void) const { return szDir; }
CString GetFileName(void) const { return szFilename; }
CString GetExtension(void) const { return szExtension; }
CString GetComputerName(void) const { return szComputer; }
// Attributes
protected:
TCHAR szPath[_MAX_PATH];
TCHAR szDrive[_MAX_DRIVE];
TCHAR szDir[_MAX_DIR];
TCHAR szFilename[_MAX_FNAME];
TCHAR szExtension[_MAX_EXT];
TCHAR szComputer[_MAX_FNAME];
};
#endif // __NGSplitPath_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -