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.

88 lines
2.2 KiB

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