Solved

Tab control within a splitter pane

Posted on 1997-10-22
4
444 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
  • 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 100 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
How to create frequencies of a variable from SAS dataset? 10 137
Strange date stored 22 166
Expand macro to ask for filename column 8 37
Line meaning 9 89
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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