How to create a propertysheet contains CDHtmlDialog pages ?

Posted on 2006-04-10
Last Modified: 2013-11-20
Hi All,

I want to create a dialogbased application. Which starts a property sheet. I want all the pages of propertysheet must derived from CDHtmlDialog.

Is there any body suggest me how to do this?

Question by:davinder101
    LVL 48

    Accepted Solution

    You can add CDHtmlDialog member to every CPropertyPage and create it as child dialog. In CPropertyPage WM_SIZE handler resize CDHtmlDialog to full client size.
    However, before starting with CDHtmlDialog I suggest you to read this:

    After reading these notes I decided not to use CDHtmlDialog class - just for information.

    Another note points to class which solves these problems: I hope that this solution works.


    Author Comment

    Hi Alex,

    Could you please explain in little bit more detail. Actually I  created  CMyPropPage which is derived from CPropertypage and  taking a member variable CmyDhtml which is derived from CDhtmlDialog.

    Now my page is coming upto next, back butoons. My requirement is page should completelly overlap the page.

    Is it possible ?

    LVL 48

    Expert Comment

    In CMyPropPage::OnCreate call Create function of CmyDhtml, with parent "this". Using MoveWindow set child dialog rectangle to CMyPropPage client rectangle. Show child dialog.
    In CMyPropPage::OnSize resize child dialog according to client rectange.
    To prevent flickering override CMyPropPage::OnEraseBkgnd ant return TRUE without calling to base class function.

    Author Comment

    Hi Alex

    Already I have tried these. These are not working. I did it by overriding OnEraseBkColor of MyProperySheet calss.

    Thanks man your first idea help me alot.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now