📄 pub.h
字号:
#if !defined (_PUB_H_)
#define _PUB_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
void doSomething();
char *GetAppDataPathfile(LPCTSTR scszDataPath, LPCTSTR scszDataFile=NULL, LPTSTR szTheBuffer=NULL);
int GetIntvalueByString(LPTSTR pstr);
int GetIntvalueByString(CString & str);
//判断一个文件是否是指定后缀的文件,FileName是文件名称
//ext是文件后缀,可以带'.',也可以不带'.'
BOOL IsFileTyped(const char *FileName, const char *ext);
//截断文件名称中的后缀
void TrimFileExt(CString &strFileName);
char *trim(char *str);
char *Path_PickupFileName(const char *path, char *buf, int size);
char *Path_PickupFileName(const char *path, CString &strFileTitle);
void AFXAPI DDX_My_Double(CDataExchange * pDX,UINT id, double& dValue);
void AFXAPI DDX_My_Int(CDataExchange *pDX, UINT id, int &iValue);
void AFXAPI DDV_MyMinMaxInt(CDataExchange* pDX, int value, int minVal, int maxVal);
AFX_STATIC void AFXAPI _MyFailMinMaxWithFormat(CDataExchange* pDX,
long minVal, long maxVal);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -