提交 | 用户 | age
|
b978bf
|
1 |
#pragma once
|
Q |
2 |
|
|
3 |
|
|
4 |
// CMyDlgBarFuncKey 对话框
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
class CMyDlgBarFuncKey : public CDialogBar
|
|
9 |
{
|
|
10 |
DECLARE_DYNAMIC(CMyDlgBarFuncKey)
|
|
11 |
typedef struct tagStructButton {
|
|
12 |
int nID;
|
|
13 |
CString sCaption;
|
|
14 |
|
|
15 |
}structButton;
|
|
16 |
|
|
17 |
public:
|
|
18 |
CMyDlgBarFuncKey(CWnd* pParent = nullptr); // 标准构造函数
|
|
19 |
virtual ~CMyDlgBarFuncKey();
|
|
20 |
|
|
21 |
// 对话框数据
|
|
22 |
#ifdef AFX_DESIGN_TIME
|
|
23 |
enum { IDD = IDD_DIALOGBAR_FUNC_KEYS };
|
|
24 |
#endif
|
|
25 |
|
|
26 |
protected:
|
|
27 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
28 |
|
|
29 |
DECLARE_MESSAGE_MAP()
|
|
30 |
public:
|
|
31 |
CButton m_buttons[3][12];
|
|
32 |
|
|
33 |
int m_Lines=3;
|
|
34 |
|
|
35 |
LRESULT OnInitDialog(WPARAM wParam, LPARAM lParam);
|
|
36 |
virtual BOOL Create(CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID);
|
|
37 |
virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHandler);
|
|
38 |
afx_msg void OnBnClickedButton1();
|
|
39 |
};
|