TXDlg.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #if !defined(AFX_TXDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_TXDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TXDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // TXDlg form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include "MyFormView.h"
  14. class TXDlg : public MyFormView
  15. {
  16. CArray<CStringArray, CStringArray>m_List1array;
  17. CString m_oldtaoxiid;
  18. CString m_oldtaoxiname;
  19. protected:
  20. TXDlg(); // protected constructor used by dynamic creation
  21. DECLARE_DYNCREATE(TXDlg)
  22. // Form Data
  23. public:
  24. //{{AFX_DATA(TXDlg)
  25. enum { IDD = IDD_DLGTX };
  26. CComboBox m_combo2;
  27. CComboBox m_combo1;
  28. CNumEdit m_editctrl1;
  29. CStatic m_static1;
  30. CSortListCtrl2 m_List1;
  31. CString m_taoxiid;
  32. CString m_taoxijiage;
  33. CString m_taoxiname;
  34. CString m_zs;
  35. CString m_zs2;
  36. //}}AFX_DATA
  37. // Attributes
  38. public:
  39. // Operations
  40. public:
  41. BOOL IsExist();
  42. BOOL IsExistID();
  43. BOOL IsExistName();
  44. void GetData();
  45. void ListSelChange();
  46. void ClearCtrl();
  47. void FillGrid();
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(TXDlg)
  51. public:
  52. virtual void OnInitialUpdate();
  53. virtual BOOL PreTranslateMessage(MSG* pMsg);
  54. protected:
  55. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. protected:
  59. virtual ~TXDlg();
  60. #ifdef _DEBUG
  61. virtual void AssertValid() const;
  62. virtual void Dump(CDumpContext& dc) const;
  63. #endif
  64. // Generated message map functions
  65. //{{AFX_MSG(TXDlg)
  66. afx_msg void OnBUTsave();
  67. afx_msg void OnBUTdel();
  68. afx_msg void OnBUTclose();
  69. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  70. afx_msg void OnBUTadd();
  71. afx_msg void OnButton1();
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. };
  75. /////////////////////////////////////////////////////////////////////////////
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_TXDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)