|
-
May 11th, 1999, 04:47 AM
#1
Converting from CPropertyPage to CDialog...
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
-
May 11th, 1999, 12:36 PM
#2
Re: Converting from CPropertyPage to CDialog...
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|