custommenudlg.h
来自「《Visual C++编程技巧典型案例解析:基础与应用篇(下)(含1CD-ROM」· C头文件 代码 · 共 37 行
H
37 行
#ifndef AFX_CUSTOMMENUDLG_H_
#define AFX_CUSTOMMENUDLG_H_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCustomMenuDlg : public CDialog
{
public:
CCustomMenuDlg(CWnd* pParent = NULL);
//{{AFX_DATA(CCustomMenuDlg)
enum { IDD = IDD_CUSTOMMENU_DIALOG };
CButton m_checkIcon;
CButton m_checkBitmap;
//}}AFX_DATA
//{{AFX_VIRTUAL(CCustomMenuDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
protected:
HICON m_hIcon;
//{{AFX_MSG(CCustomMenuDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnCheckBitmap();
afx_msg void OnCheckIcon();
afx_msg void OnButtonTest();
//}}AFX_MSG
afx_msg void OnMenuClick(UINT nID);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?