CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 33

Threaded View

  1. #26
    Join Date
    Jun 2004
    Posts
    1,352

    Re: Function to Draw Controls from a different dialog box template

    Quote Originally Posted by Arjay View Post
    What is OnInitialize? Do you mean OnInitialUpdate?

    I also found that doing Modless Dialog Boxes gives me the functionality I'm looking for.
    Yes, that is what we told you to do - calling Create( ) on a CPropertySheet creates a modeless property sheet.[/QUOTE]


    That is another way to do it. However, I find it's about the same amount of work as a doing a CTabCtrl. The CTabCtrl also has some nice features as to changing the position of the tabs.

    I find the easiest way is to do Modless Dialogs and pass them a pointer to the parent window (so as to manipulate the parents controls, ... the functionality I was looking for) and add the templates as you go along and or as you want to increase proccessing of the parent class( It's better than mount controls on top each other and hiding them, like some else suggested). ... Kind of like a split view with Dialog boxes and a Formview.

    Another cool thing about doing the modless dialogs and passing it a pointer to the FormView is that you can make the Modless Dialogs take up the whole area of the Formview and somewhat make it multiview(.. if you don't want to create a View for each screen and go that route.

    Thanks for the help, It's always cool to have several ways to do stuff. You never know what situation will come up.
    Last edited by ADSOFT; September 14th, 2010 at 09:31 PM.
    Rate this post if it helped you.

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