?
Solved

Tab control within a splitter pane

Posted on 1997-10-22
4
Medium Priority
?
457 Views
Last Modified: 2013-11-20
I have created a dialog based app that uses a frame window to display a list and a tree control (using a splitter window). I need to modify the tree control pane (a CTreeView) so that it displays a set of tabs at the bottom, allowing the user to toggle between the tree and a list control. Do I create a CTabCtrl derived class and add the tree, or place the tree and tab controls inside a CCtrlView?
0
Comment
Question by:JamieR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:gelbert
ID: 1308610
You can use CFormView instead of CTreeView in splitter window pane. Then you have to place on the dialog template Tab control and Tree control(s).You can place as many as you want CTreeCtrls then show/hide them when user swith tabs.
0
 
LVL 1

Author Comment

by:JamieR
ID: 1308611
Sorry, I may not have been descriptive enough....

I need to keep the (dynamic) splitter pane to separate the treeview from the listview. It is purely the treeview pane that I wish to use to display different types of information, based on the tab selection.

Essentially, what I need is something very similar to the Workspace window in DevStudio (except without the dockability).


0
 
LVL 8

Accepted Solution

by:
gelbert earned 300 total points
ID: 1308612
May be I just do not understand exactly what you want. But it sounds to me that you want window with splitter bar and listview in one pane and tree view in the other pane plus tabs at the bottom of treeview pane. Fine. My suggestion gives you exactly what you want. There only trade of is that you always have to make sure that window of CTreeCtrl is has width of pane window and height of pane window minus size of tabs.
0
 
LVL 1

Author Comment

by:JamieR
ID: 1308613
Of couse! Thanks, Gelbert.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question