[RESOLVED] MFC MDI Tabbed Child Window Positioning
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: [RESOLVED] MFC MDI Tabbed Child Window Positioning

  1. #1
    Join Date
    May 2006
    Location
    England
    Posts
    69

    [RESOLVED] MFC MDI Tabbed Child Window Positioning

    Is it possible to specify the size/position of tabs in an MFC MDI tabbed application?

    I am trying to save the open tabs when exiting the program and restoring them when the application is relaunched. I have come up with a method of saving and reloading the tabs, but I cannot restore their position.

    I have seen SaveMDIState and LoadMDIState but I can't make it do anything and I'm also not sure if it's what I need.

    Thanks in advance,
    AnotherMuggle

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,544

    Re: MFC MDI Tabbed Child Window Positioning

    How did you use these methods? Did you make all the steps descibed in MSDN?
    Or, maybe you have a problem similar to the one described in this thread?
    Victor Nijegorodov

  3. #3
    Join Date
    May 2006
    Location
    England
    Posts
    69

    Re: MFC MDI Tabbed Child Window Positioning

    Quote Originally Posted by VictorN View Post
    How did you use these methods? Did you make all the steps descibed in MSDN?
    Or, maybe you have a problem similar to the one described in this thread?
    Thanks for taking the time to respond. I followed all the steps presented in the MSDN article and had previously stumbled across the thread you posted, but it still wasn't working for me.

    Right before packing up for the day yesterday I discovered the Microsoft sample "VisualStudioDemo" does exactly what I am trying to do. I am going to go through that code this morning and see if it gets me on the right track.

    Regards,
    AnotherMuggle

  4. #4
    Join Date
    May 2006
    Location
    England
    Posts
    69

    Re: MFC MDI Tabbed Child Window Positioning

    Quote Originally Posted by AnotherMuggle View Post
    Thanks for taking the time to respond. I followed all the steps presented in the MSDN article and had previously stumbled across the thread you posted, but it still wasn't working for me.

    Right before packing up for the day yesterday I discovered the Microsoft sample "VisualStudioDemo" does exactly what I am trying to do. I am going to go through that code this morning and see if it gets me on the right track.

    Regards,
    AnotherMuggle
    Awesome, I have it working.

    My problem was I didn't understand what I needed to put in the CMDIFrameWndEx::CreateDocumentWindow override. Looking at the example has helped me to get it working

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center