#pragma once #include "afxwin.h" #include "afxcmn.h" // CDlgUserGroupAlloc 对话框 class CDlgUserGroupAlloc : public CDialog { DECLARE_DYNAMIC(CDlgUserGroupAlloc) public: CDlgUserGroupAlloc(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDlgUserGroupAlloc(); // 对话框数据 enum { IDD = IDD_DLG_USER_GROUP_ALLOC }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 DECLARE_MESSAGE_MAP() public: CString m_strUserID; CListBox m_ctrlListBoxSrc; CListBox m_ctrlListBoxDest; virtual BOOL OnInitDialog(); private: void InitCtrlInfo(void); void SetCtrlStatus( int nStatus ); public: afx_msg void OnBnClickedBtnSelSingle(); afx_msg void OnBnClickedBtnSelAll(); afx_msg void OnBnClickedBtnReverseSelSingle(); afx_msg void OnBnClickedBtnReverseSelAll(); afx_msg void OnBnClickedBtnOk(); afx_msg void OnBnClickedBtnCancel(); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedCancel(); public: CButton m_btnSetSingle,m_btnSetAll,m_btnDelSingle,m_btnDelAll; bool m_bIsLookStatus; };