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.

65 lines
2.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: cproppg.h
  7. //
  8. // Contents: definition for common property page functionality
  9. //
  10. // Classes: CHlprPropPage (pure virtual class)
  11. //
  12. // Functions: HlprPropPageDialogProc
  13. //
  14. // History: 4-12-1994 stevebl original dialog box helpers Created
  15. // 4-29-1998 stevebl Modified from dialog box helpers
  16. //
  17. //----------------------------------------------------------------------------
  18. #ifndef __CPROPPG_H__
  19. #define __CPROPPG_H__
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. INT_PTR CALLBACK HlprPropPageDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  24. #ifdef __cplusplus
  25. }
  26. //+---------------------------------------------------------------------------
  27. //
  28. // Class: CHlprPropPage
  29. //
  30. // Purpose: virtual base class for wrapping Windows' dialog functionality
  31. //
  32. // Interface: ShowDialog -- analagous to the Windows DialogBox function
  33. // DialogProc -- pure virtual DialogProc for the dialog box
  34. // ~CHlprPropPage -- destructor
  35. //
  36. // History: 4-12-94 stevebl Created
  37. // 7-02-1997 stevebl added CreateDlg
  38. //
  39. // Notes: This class allows a dialog box to be cleanly wrapped in
  40. // a c++ class. Specifically, it provides a way for a c++ class
  41. // to use one of its methods as a DialogProc, giving it a "this"
  42. // pointer and allowing it to have direct access to all of its
  43. // private members.
  44. //
  45. //----------------------------------------------------------------------------
  46. class CHlprPropPage
  47. {
  48. public:
  49. virtual HPROPSHEETPAGE CreatePropertySheetPage(LPPROPSHEETPAGE lppsp);
  50. virtual BOOL DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;
  51. virtual ~CHlprPropPage(){};
  52. protected:
  53. HINSTANCE m_hInstance;
  54. };
  55. #endif //__cplusplus
  56. #endif //__CPROPPG_H__