Click to See Complete Forum and Search --> : Converting from CPropertyPage to CDialog...


Braulio
May 11th, 1999, 04:47 AM
Hi,

I'm making a project and I have some property pages, the problem is that now I need to use some of that propertypages as normal dialogs, What can I do ? Rewrite all the code again ? Or... Is there an "not so much work" way to do it ? ;-)

Thanks, Bye !
Braulio

Valerie Bradley
May 11th, 1999, 12:36 PM
I have a glimmer of an idea, however it is untested...

OK, CPropertyPage is derived from CDialog, so it's my thinking that you should be able to use an instance of your CPropertyPage class as a CDialog, including calling DoModal() on it! To me, this seems logical enough. However, this is MFC we're talking about... not always the most logical thing out there. :)

If anyone out there has any other ideas, or any evidence that this does/doesn't work, I'd love to hear what you have to say. Thanks!

Good luck, and happy coding,

=================================================
Valerie L. Bradley
Software Engineer
Intel Corporation

* All opinions expressed are mine and not those of my employer.