📄 demodlg.h
字号:
// DemoDlg.h : header file
//
#if !defined(AFX_DEMODLG_H__B376F4BB_3681_428E_BE76_715D109A8F06__INCLUDED_)
#define AFX_DEMODLG_H__B376F4BB_3681_428E_BE76_715D109A8F06__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CDemoDlg dialog
class CDemoDlg : public CDialog
{
// Construction
public:
CDemoDlg(CWnd* pParent = NULL); // standard constructor
//加个菜单
CMenu m_menu;
CStringArray m_menuItem;
int IDArray[1000];//最多支持1000项
// Dialog Data
//{{AFX_DATA(CDemoDlg)
enum { IDD = IDD_DEMO_DIALOG };
CButton m_btShowMenu_ctl;
CListBox m_ListOfItem_ctl;
CButton m_btInsert_ctl;
CEdit m_item_ctl;
CString m_strItem;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDemoDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDemoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnInsert();
//}}AFX_MSG
//再这里手工加入这两个函数
afx_msg void OnMenuSelect(UINT nID);
afx_msg void OnupdateMenu(CCmdUI *pCmdUI);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEMODLG_H__B376F4BB_3681_428E_BE76_715D109A8F06__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -