⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 persist.h

📁 功能: 可以记忆应用程序窗口的大小及位置
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -