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.

71 lines
2.3 KiB

  1. /****************************************************************************\
  2. *
  3. * gendlg.h
  4. *
  5. * Created: William Taylor (wtaylor) 01/22/01
  6. *
  7. * MS Ratings General Property Page
  8. *
  9. \****************************************************************************/
  10. #ifndef GENERAL_DIALOG_H
  11. #define GENERAL_DIALOG_H
  12. #include "basedlg.h" // CBasePropertyPage
  13. typedef HINSTANCE (APIENTRY *PFNSHELLEXECUTE)(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd);
  14. class CGeneralDialog : public CBasePropertyPage<IDD_GENERAL>
  15. {
  16. private:
  17. static DWORD aIds[];
  18. PRSD * m_pPRSD;
  19. public:
  20. CGeneralDialog( PRSD * p_pPRSD );
  21. public:
  22. typedef CGeneralDialog thisClass;
  23. typedef CBasePropertyPage<IDD_GENERAL> baseClass;
  24. BEGIN_MSG_MAP(thisClass)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  26. MESSAGE_HANDLER(WM_USER, OnUser)
  27. COMMAND_ID_HANDLER(IDC_PROVIDER, OnProvider)
  28. COMMAND_ID_HANDLER(IDC_FINDRATINGS, OnFindRatings)
  29. COMMAND_ID_HANDLER(IDC_PLEASE_MOMMY, OnMarkChanged)
  30. COMMAND_ID_HANDLER(IDC_UNRATED, OnMarkChanged)
  31. COMMAND_ID_HANDLER(IDC_CHANGE_PASSWORD, OnChangePassword)
  32. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  33. NOTIFY_CODE_HANDLER(PSN_RESET, OnReset)
  34. MESSAGE_HANDLER(WM_HELP, OnHelp)
  35. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  36. CHAIN_MSG_MAP(baseClass)
  37. END_MSG_MAP()
  38. protected:
  39. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  40. LRESULT OnUser(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  41. LRESULT OnProvider(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  42. LRESULT OnFindRatings(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  43. LRESULT OnMarkChanged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  44. LRESULT OnChangePassword(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  45. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  46. LRESULT OnReset(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  47. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  48. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  49. protected:
  50. void SetButtonText( void );
  51. };
  52. #endif