Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.2 KiB

  1. // RatGenPg.h : header file
  2. //
  3. #define COMDLL
  4. #include <dtp.h>
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CRatGenPage dialog
  7. class CRatGenPage : public CPropertyPage
  8. {
  9. DECLARE_DYNCREATE(CRatGenPage)
  10. // Construction
  11. public:
  12. CRatGenPage();
  13. ~CRatGenPage();
  14. // the data
  15. CRatingsData* m_pRatData;
  16. // Dialog Data
  17. //{{AFX_DATA(CRatGenPage)
  18. enum { IDD = IDD_RAT_SETRATING };
  19. CStatic m_cstatic_moddate;
  20. CStatic m_cstatic_moddate_title;
  21. CButton m_cbutton_optional;
  22. CTreeCtrl m_ctree_tree;
  23. CStatic m_cstatic_title;
  24. CStatic m_cstatic_rating;
  25. CStatic m_cstatic_icon;
  26. CStatic m_cstatic_expires;
  27. CStatic m_cstatic_email;
  28. CStatic m_cstatic_category;
  29. CSliderCtrl m_cslider_slider;
  30. CEdit m_cedit_person;
  31. CStatic m_cstatic_description;
  32. CString m_sz_description;
  33. BOOL m_bool_enable;
  34. CString m_sz_moddate;
  35. CString m_sz_person;
  36. //}}AFX_DATA
  37. CDateTimePicker m_dtpDate;
  38. // Overrides
  39. // ClassWizard generate virtual function overrides
  40. //{{AFX_VIRTUAL(CRatGenPage)
  41. public:
  42. virtual BOOL OnSetActive();
  43. virtual BOOL OnApply();
  44. virtual void OnOK();
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  47. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. // Generated message map functions
  52. //{{AFX_MSG(CRatGenPage)
  53. afx_msg void OnEnable();
  54. afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  56. afx_msg void OnChangeNamePerson();
  57. afx_msg void OnChangeModDate();
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. void DoHelp();
  61. // tell it to query the metabase and get any defaults
  62. BOOL FInit();
  63. // load the parsed rat files into the tree
  64. BOOL FLoadRatFiles();
  65. // utilities
  66. void EnableButtons();
  67. void UpdateRatingItems();
  68. void SetCurrentModDate();
  69. void UdpateDescription();
  70. void UpdateDateStrings();
  71. void SetModifiedTime();
  72. PicsCategory* GetTreeItemCategory( HTREEITEM hItem );
  73. void LoadSubCategories( PicsCategory* pParentCat, HTREEITEM hParent );
  74. // initialized flag
  75. BOOL m_fInititialized;
  76. CImageList m_imageList;
  77. };