persist.h
来自「功能: 可以记忆应用程序窗口的大小及位置」· C头文件 代码 · 共 35 行
H
35 行
// Persist.h
#ifndef _INSIDE_VISUAL_CPP_PERSISTENT_FRAME
#define _INSIDE_VISUAL_CPP_PERSISTENT_FRAME
class CPersistentFrame : public CFrameWnd
{ // remembers where it was on the desktop
DECLARE_DYNAMIC(CPersistentFrame)
private: //定义注册表变量
static const CRect s_rectDefault; //预设窗口大小
static const char s_profileHeading[]; //标题名
static const char s_profileRect[]; //窗口坐标
static const char s_profileIcon[]; //图标
static const char s_profileMax[]; //最大化
static const char s_profileTool[]; //工具栏
static const char s_profileStatus[]; //状态栏
BOOL m_bFirstTime;
protected: // Create from serialization only
CPersistentFrame(); //构造函数
~CPersistentFrame(); //析构函数
//{{AFX_VIRTUAL(CPersistentFrame)
public:
virtual void ActivateFrame(int nCmdShow = -1);//改变窗口尺寸
protected:
//}}AFX_VIRTUAL
//{{AFX_MSG(CPersistentFrame)
afx_msg void OnDestroy(); //销毁视图
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // _INSIDE_VISUAL_CPP_PERSISTENT_FRAME
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?