CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    29

    Is it possible to make your ChildFrame act like a MainFrame?

    What I'm really looking to do is make the childframe maintain its own dockable windows that can not be moved outside the childframe window. I'm making an MDI Tabbed application with the MFC9/VS2008 feature pack. My program does not use the doc/view architecture.

    I want each project the user has open in each tab to feel like everything is contained in that project. The dockable window views and visiblility will be determined by which section of the program the user is in. It feels somewhat counter-intuitive to me when these windows are on their own and change based on a tab selection in a separate window.

    Any ideas?

    Also, with this new VS2008 feature pack, does anyone know of a way to easily make things like formviews/dialogs/buttons/etc. match the theme of the program instead of the XP theme?

    Thanks.

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Is it possible to make your ChildFrame act like a MainFrame?

    If you are not using Doc/View, how come ChildFrame come into picture ? Frankly I dont understand what exactly you want to do here.
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Jun 2007
    Posts
    29

    Re: Is it possible to make your ChildFrame act like a MainFrame?

    It's still an MDI application. I have my own "document" architecture. Each childframe could be displaying one of many views, and the dockable windows around the childframe will change based on which view is being displayed. Kind of like in VS where if you go from a standard c++ file to a dialog editor, it changes the properties box to the control toolbox.

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