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.

96 lines
3.0 KiB

  1. /******************************************************************************
  2. Header File: Property Dialogs.H
  3. This header defines several classes used for property pages in the UI. Each
  4. class is a derived class from CDialog and is described in more detail at the
  5. point it is defined.
  6. Each of these classes maintain a reference to the CProfilePropertySheet class
  7. and use it for the bulk of their information retrieval and interaction. The
  8. underlying profile information is available via the Profile() method of
  9. CProfilePropertySheet.
  10. Copyright (c) 1996 by Microsoft Corporation
  11. A Pretty Penny Enterprises Production
  12. Change History:
  13. 11-01-96 a-robkj@microsoft.com- original version
  14. ******************************************************************************/
  15. #if !defined(PROPERTY_DIALOGS)
  16. #define PROPERTY_DIALOGS
  17. #include "ProfProp.H"
  18. /******************************************************************************
  19. The CInstallPage class presents the dialog on either the install or uninstall
  20. tab, based upon whether or not the supplied profile is installed. The two
  21. dialogs are similar enough that one piece of code will initialize both.
  22. ******************************************************************************/
  23. // CInstallPage class- this encapsulates the Install/Uninstall sheet
  24. class CInstallPage : public CDialog {
  25. CProfilePropertySheet& m_cppsBoss;
  26. public:
  27. CInstallPage(CProfilePropertySheet *pcppsBoss);
  28. ~CInstallPage();
  29. virtual BOOL OnInit();
  30. virtual BOOL OnCommand(WORD wNotifyCode, WORD wid, HWND hwndCtl);
  31. };
  32. /******************************************************************************
  33. The CAdvancedPage handles the dialog on the Advanced tab of the UI. This
  34. dialog and its handling are the same whether or not the profile is installed.
  35. ******************************************************************************/
  36. // CAdvancedPage class- this handles the Advanced property page
  37. class CAdvancedPage: public CDialog {
  38. CProfilePropertySheet& m_cppsBoss;
  39. void Update(); // Update the list and controls
  40. public:
  41. CAdvancedPage(CProfilePropertySheet *pcppsBoss);
  42. ~CAdvancedPage();
  43. virtual BOOL OnInit();
  44. virtual BOOL OnCommand(WORD wNotifyCode, WORD wid, HWND hwndCtl);
  45. };
  46. /******************************************************************************
  47. The CAddDeviceDialog class handles the Add Device Dialog, which can be called
  48. from the Advanced tab.
  49. ******************************************************************************/
  50. class CAddDeviceDialog: public CDialog {
  51. CProfilePropertySheet& m_cppsBoss;
  52. HWND m_hwndList, m_hwndButton;
  53. public:
  54. CAddDeviceDialog(CProfilePropertySheet& cpps, HWND hwndParent);
  55. virtual BOOL OnInit();
  56. virtual BOOL OnCommand(WORD wNotification, WORD wid, HWND hwndControl);
  57. };
  58. #endif