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.

73 lines
2.6 KiB

  1. /****************************************************************************\
  2. *
  3. * apprdlg.h
  4. *
  5. * Created: William Taylor (wtaylor) 01/22/01
  6. *
  7. * MS Ratings Approved Sites Property Page
  8. *
  9. \****************************************************************************/
  10. #ifndef APPROVED_SITES_DIALOG_H
  11. #define APPROVED_SITES_DIALOG_H
  12. #include "basedlg.h" // CBasePropertyPage
  13. class CApprovedSitesDialog : public CBasePropertyPage<IDD_APPROVEDSITES>
  14. {
  15. private:
  16. static DWORD aIds[];
  17. PRSD * m_pPRSD;
  18. public:
  19. CApprovedSitesDialog( PRSD * p_pPRSD );
  20. public:
  21. typedef CApprovedSitesDialog thisClass;
  22. typedef CBasePropertyPage<IDD_APPROVEDSITES> baseClass;
  23. BEGIN_MSG_MAP(thisClass)
  24. MESSAGE_HANDLER(WM_SYSCOLORCHANGE, OnSysColorChange)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  26. COMMAND_HANDLER(IDC_PICSRULESAPPROVEDEDIT, EN_UPDATE, OnPicsRulesEditUpdate)
  27. COMMAND_ID_HANDLER(IDC_PICSRULESAPPROVEDNEVER, OnPicsRulesApprovedNever)
  28. COMMAND_ID_HANDLER(IDC_PICSRULESAPPROVEDALWAYS, OnPicsRulesApprovedAlways)
  29. COMMAND_ID_HANDLER(IDC_PICSRULESAPPROVEDREMOVE, OnPicsRulesApprovedRemove)
  30. NOTIFY_HANDLER(IDC_PICSRULESAPPROVEDLIST, LVN_ITEMCHANGED, OnPicsRulesListChanged)
  31. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  32. NOTIFY_CODE_HANDLER(PSN_RESET, OnReset)
  33. MESSAGE_HANDLER(WM_HELP, OnHelp)
  34. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  35. CHAIN_MSG_MAP(baseClass)
  36. END_MSG_MAP()
  37. protected:
  38. void SetListImages( HIMAGELIST hImageList );
  39. LRESULT OnSysColorChange(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  40. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  41. LRESULT OnPicsRulesEditUpdate(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  42. LRESULT OnPicsRulesApprovedNever(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  43. LRESULT OnPicsRulesApprovedAlways(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  44. LRESULT OnPicsRulesApprovedRemove(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  45. LRESULT OnPicsRulesListChanged(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  46. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  47. LRESULT OnReset(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  48. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  49. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  50. protected:
  51. void ShowBadUrl( void );
  52. HRESULT PICSRulesApprovedSites( BOOL fAlwaysNever );
  53. };
  54. #endif