ReportColPage.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #if !defined(AFX_REPORTCOLPAGE_H__8EE910FA_972A_45CB_8AD5_EFBEA17D303E__INCLUDED_)
  2. #define AFX_REPORTCOLPAGE_H__8EE910FA_972A_45CB_8AD5_EFBEA17D303E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ReportColPage.h : header file
  7. //
  8. //#include <afxtempl.h>
  9. #include "DataGrid.h"
  10. #include "DataComboBox.h"
  11. class CColPro: public CObject
  12. {
  13. public:
  14. DECLARE_SERIAL(CColPro);
  15. CColPro();
  16. public:
  17. CString m_strTitle;
  18. CString m_strVar;
  19. CString m_strFormat;
  20. public:
  21. ~CColPro();
  22. CColPro& operator=(CColPro& Obj);
  23. virtual CColPro* Clone(void);
  24. virtual void Serialize(CArchive& ar);
  25. };
  26. typedef CTypedPtrList<CObList, CColPro*> CColProList;
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CReportColPage dialog
  29. class CReportColPage : public CPropertyPage
  30. {
  31. DECLARE_DYNCREATE(CReportColPage)
  32. // Construction
  33. public:
  34. void FreshList();
  35. CReportColPage();
  36. ~CReportColPage();
  37. CColProList m_colList;
  38. void SetVal(int row, int col, CString str);
  39. // Dialog Data
  40. //{{AFX_DATA(CReportColPage)
  41. enum { IDD = IDD_REPORTCOLPAGE };
  42. CString m_strTitle;
  43. CString m_strVar;
  44. CString m_strFormat;
  45. CDataGrid m_ctrlList;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generate virtual function overrides
  49. //{{AFX_VIRTUAL(CReportColPage)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CReportColPage)
  57. afx_msg void OnAdd();
  58. afx_msg void OnRevise();
  59. afx_msg void OnDel();
  60. afx_msg void OnUp();
  61. afx_msg void OnDown();
  62. virtual BOOL OnInitDialog();
  63. afx_msg void OnClickCollist();
  64. afx_msg void OnSelvar();
  65. DECLARE_EVENTSINK_MAP()
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_REPORTCOLPAGE_H__8EE910FA_972A_45CB_8AD5_EFBEA17D303E__INCLUDED_)