#pragma once #include "PropSysReg1.h" #include "PropModeCfg.h" #include "PropMemCfg.h" #include "PropCommCfg.h" #include "PropInputCfg.h" #include "PropOutputCfg.h" #include "PropSysReg1.h" // CDialogSysRegSet 对话框 //class CPropSysReg1; class CDialogSysRegSet : public CDialogEx { DECLARE_DYNAMIC(CDialogSysRegSet) public: CDialogSysRegSet(CWnd* pParent = nullptr); // 标准构造函数 virtual ~CDialogSysRegSet(); RECT rect0; RECT rect1; int m_nPropHeight; int m_nFrameheight; int m_nScrollPos = 0; // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_DIALOG_SYSREG_SET }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 CPropSysReg1 m_propsysreg1; CPropModeCfg m_propmodecfg1; CPropMemCfg m_propmemcfg1; CPropCommCfg m_propcommcfg1; CPropCommCfg m_propcommcfg2; CPropInputCfg m_propinputcfg1; CPropInputCfg m_propinputcfg2; CPropInputCfg m_propinputcfg3; CPropInputCfg m_propinputcfg4; CPropOutputCfg m_propoutputcfg1; CPropOutputCfg m_propoutputcfg2; CPropOutputCfg m_propoutputcfg3; CPropOutputCfg m_propoutputcfg4; CPropCommCfg m_propcommcfg3; DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); CScrollBar m_prop_scrollbar1; afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt); afx_msg void OnLbnSelchangeListSel1(); CListBox m_listSel1; int m_nTotalProp = 0; int m_nCurProp = 0; CDialogEx * m_PropPages[30]; int AddPropPage(CString sName, CDialogEx & rDlg); int testXmlParser(); int LoadDeviceDescriptionFile(); };