CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Portland, OR, USA
    Posts
    29

    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
  •  





Click Here to Expand Forum to Full Width

Featured