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.

57 lines
1.6 KiB

  1. /****************************************************************************\
  2. *
  3. * introdlg.h
  4. *
  5. * Created: William Taylor (wtaylor) 01/22/01
  6. *
  7. * MS Ratings Introduction Property Page
  8. *
  9. \****************************************************************************/
  10. #ifndef INTRO_DIALOG_H
  11. #define INTRO_DIALOG_H
  12. #include "basedlg.h" // CBasePropertyPage
  13. class CIntroDialog : public CBasePropertyPage<IDD_INTRO>
  14. {
  15. private:
  16. static DWORD aIds[];
  17. public:
  18. CIntroDialog();
  19. public:
  20. typedef CIntroDialog thisClass;
  21. typedef CBasePropertyPage<IDD_INTRO> baseClass;
  22. BEGIN_MSG_MAP(thisClass)
  23. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  24. COMMAND_ID_HANDLER(IDC_SET_RATINGS, OnSetRatings)
  25. COMMAND_ID_HANDLER(IDC_TURN_ONOFF, OnTurnOnOff)
  26. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  27. MESSAGE_HANDLER(WM_HELP, OnHelp)
  28. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  29. CHAIN_MSG_MAP(baseClass)
  30. END_MSG_MAP()
  31. protected:
  32. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  33. LRESULT OnSetRatings(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  34. LRESULT OnTurnOnOff(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  35. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  36. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  37. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  38. protected:
  39. void EnableDlgItems( void );
  40. };
  41. #endif