Solved

Tab control within a splitter pane

Posted on 1997-10-22
4
412 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now