📄 mfcdemo.h
字号:
//////////////////////////////////////////////////////
// MFCDemo.h文件
#include <afxwin.h>
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance();
};
class CMainWindow : public CWnd
{
public:
CMainWindow();
protected:
// 两个子窗口控件
CButton m_btnModel;
CButton m_btnModeless;
virtual void PostNcDestroy();
afx_msg BOOL OnCreate(LPCREATESTRUCT);
afx_msg void OnModel();
afx_msg void OnModeless();
DECLARE_MESSAGE_MAP()
};
class CMyDialog : public CDialog
{
public:
CMyDialog(CWnd* pParentWnd = NULL);
BOOL m_bModeless;
protected:
virtual BOOL OnInitDialog();
virtual void OnCancel();
virtual void PostNcDestroy();
afx_msg void OnStart();
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -