test: propdlg.h Source File

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# propdlg.h

Go to the documentation of this file.

    00001 /******************************************************************************
    00002
    00003   Header File:  Property Dialogs.H
    00004
    00005   This header defines several classes used for property pages in the UI.  Each
    00006   class is a derived class from CDialog and is described in more detail at the
    00007   point it is defined.
    00008
    00009   Each of these classes maintain a reference to the CProfilePropertySheet class
    00010   and use it for the bulk of their information retrieval and interaction.  The
    00011   underlying profile information is available via the Profile() method of
    00012   CProfilePropertySheet.
    00013
    00014   Copyright (c) 1996 by Microsoft Corporation
    00015
    00016   A Pretty Penny Enterprises Production
    00017
    00018   Change History:
    00019
    00020   11-01-96  a-robkj@microsoft.com- original version
    00021
    00022 ******************************************************************************/
    00023
    00024 #if !defined(PROPERTY_DIALOGS)
    00025
    00026 #define PROPERTY_DIALOGS
    00027
    00028 #include    "ProfProp.H"
    00029
    00030 /******************************************************************************
    00031
    00032   The CInstallPage class presents the dialog on either the install or uninstall
    00033   tab, based upon whether or not the supplied profile is installed.  The two
    00034   dialogs are similar enough that one piece of code will initialize both.
    00035
    00036 ******************************************************************************/
    00037
    00038 //  CInstallPage class- this encapsulates the Install/Uninstall sheet
    00039
    00040 class   CInstallPage : public CDialog {
    00041     CProfilePropertySheet&  m_cppsBoss;
    00042
    00043 public:
    00044
    00045     CInstallPage(CProfilePropertySheet *pcppsBoss);
    00046     ~CInstallPage();
    00047
    00048     virtual BOOL    OnInit();
    00049     virtual BOOL    OnCommand(WORD wNotifyCode, WORD wid, HWND hwndCtl);
    00050 };
    00051
    00052 /******************************************************************************
    00053
    00054   The CAdvancedPage handles the dialog on the Advanced tab of the UI.  This
    00055   dialog and its handling are the same whether or not the profile is installed.
    00056
    00057 ******************************************************************************/
    00058
    00059 //  CAdvancedPage class- this handles the Advanced property page
    00060
    00061 class CAdvancedPage: public CDialog {
    00062     CProfilePropertySheet&  m_cppsBoss;
    00063
    00064     void    Update();   //  Update the list and controls
    00065
    00066 public:
    00067
    00068     CAdvancedPage(CProfilePropertySheet *pcppsBoss);
    00069     ~CAdvancedPage();
    00070
    00071     virtual BOOL    OnInit();
    00072     virtual BOOL    OnCommand(WORD wNotifyCode, WORD wid, HWND hwndCtl);
    00073 };
    00074
    00075 /******************************************************************************
    00076
    00077   The CAddDeviceDialog class handles the Add Device Dialog, which can be called
    00078   from the Advanced tab.
    00079
    00080 ******************************************************************************/
    00081
    00082 class CAddDeviceDialog: public CDialog {
    00083     CProfilePropertySheet&  m_cppsBoss;
    00084     HWND                    m_hwndList, m_hwndButton;
    00085
    00086 public:
    00087
    00088     CAddDeviceDialog(CProfilePropertySheet& cpps, HWND hwndParent);
    00089
    00090     virtual BOOL    OnInit();
    00091
    00092     virtual BOOL    OnCommand(WORD wNotification, WORD wid, HWND hwndControl);
    00093
    00094 };
    00095
    00096 #endif