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.

40 lines
1.3 KiB

  1. #ifndef __PROPERTYPAGE_H
  2. #define __PROPERTYPAGE_H
  3. #include "dialog.h"
  4. class PropertyPage : public Dialog {
  5. public:
  6. PropertyPage(UINT resID, HINSTANCE hInst) : Dialog(resID, hInst) {}
  7. HPROPSHEETPAGE CreatePropertyPage();
  8. operator HPROPSHEETPAGE() { return CreatePropertyPage(); }
  9. protected:
  10. static INT_PTR PropertyPageStaticDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  11. static UINT CALLBACK PropertyPageStaticCallback(HWND hwnd, UINT msg, LPPROPSHEETPAGE ppsp);
  12. virtual UINT CallbackCreate() { return TRUE; }
  13. virtual void CallbackRelease() {}
  14. virtual UINT ShowModal(HWND hwndParent = NULL) { return (UINT) -1;}
  15. virtual INT_PTR OnNotify(NMHDR * nmhdr);
  16. virtual void OnApply(LPPSHNOTIFY lppsn);
  17. virtual void OnSetActive(LPPSHNOTIFY lppsn);
  18. virtual void OnKillActive(LPPSHNOTIFY lppsn);
  19. virtual void OnReset(LPPSHNOTIFY lppsn) {}
  20. virtual void OnHelp(LPPSHNOTIFY lppsn) {}
  21. virtual void OnQueryCancel(LPPSHNOTIFY lppsn);
  22. virtual void SetModified(BOOL bChanged = TRUE);
  23. virtual void FillPropSheetPage();
  24. PROPSHEETPAGE psp;
  25. };
  26. int CALLBACK BrowseCallback(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
  27. int IdMessageBox(HWND hwnd, int MsgId, DWORD Options = MB_OK | MB_ICONSTOP, int CaptionId = 0);
  28. #endif // __PROPERTYPAGE_H