Leaked source code of windows server 2003
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.

89 lines
2.3 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 void OnDestroy();
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. void DoHelp();
  60. // tell it to query the metabase and get any defaults
  61. BOOL FInit();
  62. // load the parsed rat files into the tree
  63. BOOL FLoadRatFiles();
  64. // utilities
  65. void EnableButtons();
  66. void UpdateRatingItems();
  67. void SetCurrentModDate();
  68. void UpdateDescription();
  69. void UpdateDateStrings();
  70. void SetModifiedTime();
  71. PicsCategory* GetTreeItemCategory( HTREEITEM hItem );
  72. void LoadSubCategories( PicsCategory* pParentCat, HTREEITEM hParent );
  73. // initialized flag
  74. BOOL m_fInititialized;
  75. CImageList m_imageList;
  76. };