How to create a propertysheet contains CDHtmlDialog pages ?

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?


Thanks
davinder101Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlexFMCommented:
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:
http://www.codeproject.com/dotnet/dhtmldialog.asp#xx568889xx

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

Another note points to class which solves these problems: http://www.codeproject.com/dotnet/dhtmldialog.asp#xx959825xx. I hope that this solution works.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
davinder101Author Commented:
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 ?

AlexFMCommented:
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.
davinder101Author Commented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.