Dlg_Card.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #pragma once
  2. #include "afxcmn.h"
  3. #include "afxwin.h"
  4. #include "XPButton.h"
  5. #include "ListCtrlCl.h"
  6. // CDlg_Card 对话框
  7. class CDlg_Card : public CDialog
  8. {
  9. DECLARE_DYNAMIC(CDlg_Card)
  10. public:
  11. CDlg_Card(CWnd* pParent = NULL); // 标准构造函数
  12. virtual ~CDlg_Card();
  13. // 对话框数据
  14. enum { IDD = IDD_DLG_CARD };
  15. protected:
  16. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  17. DECLARE_MESSAGE_MAP()
  18. public:
  19. CString m_sEdit_Name;
  20. CString m_sEdit_CardNumber;
  21. CString m_sEdit_Class;
  22. CString m_sEdit_Remarks;
  23. virtual BOOL OnInitDialog();
  24. CListCtrlCl m_List_Card;
  25. afx_msg void OnBnClickedBtnAdd();
  26. afx_msg void OnBnClickedBtnSave();
  27. afx_msg void OnBnClickedBtnDel();
  28. afx_msg void OnNMClickListControl(NMHDR *pNMHDR, LRESULT *pResult);
  29. CString m_sEdit_JobNumber;
  30. void SetPos( CRect rect );
  31. CXPButton m_Btn_Add;
  32. CXPButton m_Btn_Modify;
  33. CXPButton m_Btn_Delete;
  34. CXPButton m_Btn_Input;
  35. CXPButton m_Btn_Exput;
  36. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  37. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  38. int InitList(void);
  39. afx_msg void OnNMDblclkListControl(NMHDR *pNMHDR, LRESULT *pResult);
  40. afx_msg void OnBnClickedBtnInput();
  41. afx_msg void OnBnClickedBtnExput();
  42. void ReadCard( CListCtrl *pListCtrl );
  43. };