#pragma once #include "CHMPropertyPage.h" #include "ListCtrlEx.h" // CPageDataVarialbles 对话框(DVID 编辑/查看) class CPageDataVarialbles : public CHMPropertyPage { DECLARE_DYNAMIC(CPageDataVarialbles) public: CPageDataVarialbles(CWnd* pParent = nullptr); virtual ~CPageDataVarialbles(); virtual void OnApply(); void loadDataVariables(); virtual void OnCreateBtns(); private: CListCtrlEx m_listCtrl; protected: virtual void OnClickedBtn(const char* btnName) override; #ifdef AFX_DESIGN_TIME enum { IDD = IDD_PAGE_VARIABLE }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLvnItemchangedList1(NMHDR* pNMHDR, LRESULT* pResult); };