Views Tabs and Splitters
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Views Tabs and Splitters

  1. #1
    Join Date
    Apr 2005
    Posts
    78

    Question Views Tabs and Splitters

    Hi,

    We know a document can have multiple views, if we want to display these views simultaneously using the doc/view model then
    we can use splitters embedded in the ChildFrame or tabs using the CTabView

    What I want is to be able to display multiple views with splitters within tabs
    Is this possible, it was not many years ago and I used this library
    http://www.codeproject.com/Articles/...-and-Splitters

    But this work has long be abandoned and does not work correctly with the new MFC extensions classes CMDIChildWndEx
    Which I now want to upgrade to using VS 2012.

    Any ideas?

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

    Re: Views Tabs and Splitters

    To use splitters in each tab of tabbed UI you don't need anything non-standard.
    Just use App Wizard to create a new MDI project with tabbed views. Then in child frame class you override OnCreateClient to add CSplitterWnd::CreateStatic and CSplitterWnd::CreateView calls...
    Victor Nijegorodov

  3. #3
    Join Date
    Apr 2005
    Posts
    78

    Question Re: Views Tabs and Splitters

    Quote Originally Posted by VictorN View Post
    To use splitters in each tab of tabbed UI you don't need anything non-standard.
    Just use App Wizard to create a new MDI project with tabbed views. Then in child frame class you override OnCreateClient to add CSplitterWnd::CreateStatic and CSplitterWnd::CreateView calls...
    Hi Victor,

    I dont think thats quite what I want...

    Yes that would give me a tab with a split view, but I want a childframe with two tabs, in each tab is two views with a splitter, these views in each tab are different.

    When you create a new tab in the mdi its a single tab per new instance, I want 2 tabs per new instance. I want these tabs in the childframe, not the mainframe, hope i am making sense?

Tags for this Thread

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center