Click here to Skip to main content
15,878,814 members
Articles / Desktop Programming / MFC
Article

Wizard2000 - Wizard 97 Property Sheets

Rate me:
Please Sign up or sign in to vote.
4.56/5 (3 votes)
9 Mar 2000CPOL 110.1K   1.8K   24   20
Implements an application whose main window is a Wizard 97 based property sheet.
  • Download demo project - 16 Kb
  • Download source files - 65 Kb
  • Introduction to the Wizard 97

    The Platform Internet SDK along with its all other Goodies adds a new Property Sheet Wizard User Interface. It could enhance your user interface by supporting a watermark background bitmap and a bitmapped header for the property page.

    The attached sample demonstrates an application whose main window is a Wizard 97 based property sheet.

    Microsoft has included two new classes for the purpose:

    • CPropertySheetEx - CPropertySheet enhancing the current property sheet to support a watermark background bitmap and a bitmapped header.
    • CPropertyPageEx - CPropertyPage enhancing the current property page to determine whether the page requires a header or a watermark background.

    Sample Screen shots of the test application:

    Image 1


    Image 2

    After building a bitmap handle to the Watermark and the Header bitmap it is passed to the constructor to the extended property sheets constructor.

    CPropertySheetEx(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0,
                     HBITMAP hbmWatermark = NULL, HPALETTE hpalWatermark = NULL,
                     HBITMAP hbmHeader = NULL);

    Also the flags for the property sheet header flags should include the PSH_WIZARD97 style in the constructor.

    m_psh.dwFlags |= PSH_WIZARD97;

    Also the flags for the property page header could include the PSP_HIDEHEADER style in the constructor to prompt that no header is required (the header bitmap is not displayed example in the welcome page - 1st page).


    License

    This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


    Written By
    Architect
    India India
    1993 started with Computers

    BE(Computer Science) and MS (Software Systems)

    Industry Experience: 10 Years

    C, C++, VC++(MFC), .NET, C#, MTS, Queuing, ASP.NET, AJAX, Java, J2EE, SunOne, JMS

    Banking, Insurance & Pension,Health Care

    Comments and Discussions

     
    QuestionBitmap is not being drawn on entire area of the property sheet header ? Pin
    RajaPratap16-Jul-14 21:02
    RajaPratap16-Jul-14 21:02 
    GeneralIt does not work if compiling with visual studio.net 2003. Pin
    Hongweijia15-Dec-04 11:15
    Hongweijia15-Dec-04 11:15 
    GeneralRe: It does not work if compiling with visual studio.net 2003. Pin
    Hongweijia15-Dec-04 12:07
    Hongweijia15-Dec-04 12:07 
    GeneralWIZARD97 and 256 colours Pin
    Phil Swann14-May-01 5:21
    Phil Swann14-May-01 5:21 
    GeneralRe: WIZARD97 and 256 colours Pin
    cirdannadric23-Sep-03 6:36
    cirdannadric23-Sep-03 6:36 
    GeneralProblems Pin
    Will Baldwin16-Sep-00 16:25
    Will Baldwin16-Sep-00 16:25 
    GeneralRe: Problems Pin
    20-Dec-00 17:07
    suss20-Dec-00 17:07 
    Hi Will Baldwin,

    I think installing IE5.5 should take care of the DLL problem. Also if you are trying to compile the code on just VC++6 then you may want to install Platform SDK.

    Good Luck
    GeneralRe: Problems - Workaround / Solution Pin
    6-Jun-01 8:12
    suss6-Jun-01 8:12 
    GeneralRe: Problems - Workaround / Solution Pin
    Hongweijia15-Dec-04 11:36
    Hongweijia15-Dec-04 11:36 
    GeneralRe: Problems - Workaround / Solution Pin
    DVProgramms3-Feb-05 9:59
    sussDVProgramms3-Feb-05 9:59 
    GeneralWizard97 - adding pages after DoModal() Pin
    Miri B.21-Jun-00 23:27
    sussMiri B.21-Jun-00 23:27 
    GeneralRe: Wizard97 - adding pages after DoModal() Pin
    rm223-Oct-04 2:07
    rm223-Oct-04 2:07 
    GeneralWin 95 Dosent Display Bitmaps... Pin
    +Ari+17-May-00 2:42
    +Ari+17-May-00 2:42 
    GeneralRe: Win 95 Dosent Display Bitmaps... Pin
    Pat Laplante22-May-00 7:18
    sussPat Laplante22-May-00 7:18 
    GeneralRe: Win 95 Dosent Display Bitmaps... Pin
    Andy Metcalfe27-Sep-00 23:20
    sussAndy Metcalfe27-Sep-00 23:20 
    GeneralDon't work Pin
    Alin15-Mar-00 23:18
    Alin15-Mar-00 23:18 
    GeneralRe: Don't work Pin
    Santosh Rao16-Mar-00 0:59
    Santosh Rao16-Mar-00 0:59 
    GeneralRe: Don't work Pin
    Santosh Rao16-Mar-00 1:06
    Santosh Rao16-Mar-00 1:06 
    GeneralOh why... Pin
    Paul Selormey12-Mar-00 14:59
    Paul Selormey12-Mar-00 14:59 
    GeneralRe: Oh why... Pin
    Santosh Rao12-Mar-00 17:06
    Santosh Rao12-Mar-00 17:06 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.