#pragma once
|
|
|
// CMyDlgBarFuncKey 对话框
|
|
|
|
class CMyDlgBarFuncKey : public CDialogBar
|
{
|
DECLARE_DYNAMIC(CMyDlgBarFuncKey)
|
typedef struct tagStructButton {
|
int nID;
|
CString sCaption;
|
|
}structButton;
|
|
public:
|
CMyDlgBarFuncKey(CWnd* pParent = nullptr); // 标准构造函数
|
virtual ~CMyDlgBarFuncKey();
|
|
// 对话框数据
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_DIALOGBAR_FUNC_KEYS };
|
#endif
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
DECLARE_MESSAGE_MAP()
|
public:
|
CButton m_buttons[3][12];
|
|
int m_Lines=3;
|
|
LRESULT OnInitDialog(WPARAM wParam, LPARAM lParam);
|
virtual BOOL Create(CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID);
|
virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHandler);
|
afx_msg void OnBnClickedButton1();
|
};
|