#pragma once #include "afxcmn.h" #include "afxwin.h" #include "BtnST.h" // CDlg_GroupManage 对话框 class CDlg_GroupManage : public CDialog { DECLARE_DYNAMIC(CDlg_GroupManage) public: CDlg_GroupManage(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDlg_GroupManage(); // 对话框数据 enum { IDD = IDD_DLG_GROUP_MANAGE }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 DECLARE_MESSAGE_MAP() public: CTreeCtrl m_wndTree; CImageList m_wndImageList; virtual BOOL OnInitDialog(); void InitTreeInfo(); afx_msg void OnBnClickedBtnAddgroup(); afx_msg void OnBnClickedBtnDelgroup(); CButton m_btnSetSingle,m_btnSetAll,m_btnDelSingle,m_btnDelAll; CListBox m_ctrlListBoxSrc; CListBox m_ctrlListBoxDest; afx_msg void OnBnClickedBtnSelSingle(); afx_msg void OnBnClickedBtnSelAll(); afx_msg void OnBnClickedBtnReverseSelSingle(); afx_msg void OnBnClickedBtnReverseSelAll(); CButton m_btnSetSingle1,m_btnSetAll1,m_btnDelSingle1,m_btnDelAll1; CListBox m_ctrlListBoxSrc1; CListBox m_ctrlListBoxDest1; afx_msg void OnBnClickedBtnSelSingle1(); afx_msg void OnBnClickedBtnSelAll1(); afx_msg void OnBnClickedBtnReverseSelSingle1(); afx_msg void OnBnClickedBtnReverseSelAll1(); CButton m_btnSetSingle2,m_btnSetAll2,m_btnDelSingle2,m_btnDelAll2; CListBox m_ctrlListBoxSrc2; CListBox m_ctrlListBoxDest2; afx_msg void OnBnClickedBtnSelSingle2(); afx_msg void OnBnClickedBtnSelAll2(); afx_msg void OnBnClickedBtnReverseSelSingle2(); afx_msg void OnBnClickedBtnReverseSelAll2(); afx_msg void OnBnClickedOk(); HTREEITEM m_hRoot; HTREEITEM m_hCurretItem; CString m_sCurrentGroupName; int m_nGroupID; afx_msg void OnNMDblclkTreeGroup(NMHDR *pNMHDR, LRESULT *pResult); public: CButton m_btnAddGroup,m_btnDelGroup; bool m_bIsLookStatus; void GetGroupDevice(); int m_nType; void IsVisibleCtrl(); afx_msg void OnBnClickedRadio1(); afx_msg void OnBnClickedRadio2(); afx_msg void OnBnClickedRadio3(); };