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.

86 lines
3.3 KiB

  1. /****************************************************************************\
  2. *
  3. * advdlg.h
  4. *
  5. * Created: William Taylor (wtaylor) 01/22/01
  6. *
  7. * MS Ratings Advanced Property Page
  8. *
  9. \****************************************************************************/
  10. #ifndef ADVANCED_DIALOG_H
  11. #define ADVANCED_DIALOG_H
  12. #include "basedlg.h" // CBasePropertyPage
  13. class CAdvancedDialog : public CBasePropertyPage<IDD_ADVANCED>
  14. {
  15. private:
  16. static DWORD aIds[];
  17. PRSD * m_pPRSD;
  18. public:
  19. CAdvancedDialog( PRSD * p_pPRSD );
  20. public:
  21. typedef CAdvancedDialog thisClass;
  22. typedef CBasePropertyPage<IDD_ADVANCED> baseClass;
  23. BEGIN_MSG_MAP(thisClass)
  24. MESSAGE_HANDLER(WM_SYSCOLORCHANGE, OnSysColorChange)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  26. MESSAGE_HANDLER(WM_USER, OnUser)
  27. COMMAND_HANDLER(IDC_3RD_COMBO, CBN_EDITCHANGE, OnMarkChanged)
  28. COMMAND_HANDLER(IDC_3RD_COMBO, CBN_SELENDOK, OnMarkChanged)
  29. COMMAND_HANDLER(IDC_PICSRULES_LIST, LBN_SELCHANGE, OnSelChange)
  30. COMMAND_ID_HANDLER(IDC_PICSRULES_UP, OnPicsRulesUp)
  31. COMMAND_ID_HANDLER(IDC_PICSRULES_DOWN, OnPicsRulesDown)
  32. COMMAND_ID_HANDLER(IDC_PICSRULESEDIT, OnPicsRulesEdit)
  33. COMMAND_ID_HANDLER(IDC_PICSRULESOPEN, OnPicsRulesOpen)
  34. NOTIFY_CODE_HANDLER(PSN_SETACTIVE, OnSetActive)
  35. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  36. NOTIFY_CODE_HANDLER(PSN_RESET, OnReset)
  37. MESSAGE_HANDLER(WM_HELP, OnHelp)
  38. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  39. CHAIN_MSG_MAP(baseClass)
  40. END_MSG_MAP()
  41. protected:
  42. LRESULT OnSysColorChange(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  43. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  44. LRESULT OnUser(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  45. LRESULT OnMarkChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  46. LRESULT OnSelChange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  47. LRESULT OnPicsRulesUp(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  48. LRESULT OnPicsRulesDown(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  49. LRESULT OnPicsRulesEdit(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  50. LRESULT OnPicsRulesOpen(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  51. LRESULT OnSetActive(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  52. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  53. LRESULT OnReset(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  54. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  55. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  56. protected:
  57. void InstallRatingBureauHelper( void );
  58. void DeinstallRatingBureauHelper( void );
  59. UINT FillBureauList( PicsRatingSystemInfo *pPRSI );
  60. HRESULT CopySubPolicyExpression(PICSRulesPolicyExpression * pPRSubPolicyExpression,
  61. PICSRulesPolicyExpression * pPRSubPolicyExpressionToCopy,
  62. PICSRulesRatingSystem * pPRRSLocal,
  63. PICSRulesPolicy * pPRPolicy);
  64. HRESULT CopyArrayPRRSStructures(array<PICSRulesRatingSystem*> * parrpPRRSDest,
  65. array<PICSRulesRatingSystem*> * parrpPRRSSource);
  66. };
  67. #endif