#pragma once #include "afxcmn.h" #include "afxwin.h" #include "XPButton.h" #include "ListCtrlCl.h" // CDlg_Card 对话框 class CDlg_Card : public CDialog { DECLARE_DYNAMIC(CDlg_Card) public: CDlg_Card(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDlg_Card(); // 对话框数据 enum { IDD = IDD_DLG_CARD }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 DECLARE_MESSAGE_MAP() public: CString m_sEdit_Name; CString m_sEdit_CardNumber; CString m_sEdit_Class; CString m_sEdit_Remarks; virtual BOOL OnInitDialog(); CListCtrlCl m_List_Card; afx_msg void OnBnClickedBtnAdd(); afx_msg void OnBnClickedBtnSave(); afx_msg void OnBnClickedBtnDel(); afx_msg void OnNMClickListControl(NMHDR *pNMHDR, LRESULT *pResult); CString m_sEdit_JobNumber; void SetPos( CRect rect ); CXPButton m_Btn_Add; CXPButton m_Btn_Modify; CXPButton m_Btn_Delete; CXPButton m_Btn_Input; CXPButton m_Btn_Exput; afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg BOOL OnEraseBkgnd(CDC* pDC); int InitList(void); afx_msg void OnNMDblclkListControl(NMHDR *pNMHDR, LRESULT *pResult); afx_msg void OnBnClickedBtnInput(); afx_msg void OnBnClickedBtnExput(); void ReadCard( CListCtrl *pListCtrl ); };