Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Developer Studio type Tab controls/Property Sheets

Posted on 1997-06-12
Medium Priority
Last Modified: 2013-11-20
How do we create the Developer Studio type (One in which the tab handles are at the bottom) inverted tab control/Property Sheets?
Question by:tusawant
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
  • 4
  • 3
  • 2

Expert Comment

ID: 1302076
To make tab control which don't work like the CTabCtrl the easiest of the ways is to make a ownerdrawn listbox. Override  the WM_DRAWITEM and WM_MEASUREITEM messages. A tab as a whole is nothing but a cute looking listbox. Every item is an element. It is as easy as making an horizontal listbox.

Author Comment

ID: 1302077
That's a vague answer. Some concrete code would help. Thanks for the early reply.


Author Comment

ID: 1302078
I want the similar look and feel as the Developer Studio's Project Workspace. I want to put more than one tree controls similar to the Project Workspace (ones like classview, resourceview,fileview, infoview). I hope I am clear.
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.


Expert Comment

ID: 1302079
A vague answer for a vaguer question.. The experts exchange is a discussion group to find answers to your questions. Experts here do their best to answer your issues. If possible (if we find some code in hand) we publish it on the page or mail it to you. Seldom you find people going out of their way to take someones trouble on their shoulders. My job is to guide you to achieve your goals with the easiest possible solution. And I think I have provided you with a pretty good hint. I suggest you find a way to use this hint and do it yourself as you will hardly find any code doing this on the MSDN (I didn't) or elsewhere.


Expert Comment

ID: 1302080
If u have worked with ownerdrawn list boxes you won't have much trouble sorting this issue out. You have to make sure you have given enough height to each item in the listbox by overriding the WM_INSERTITEM. Now in your WM_drawitem mem function make sure you have drawn the tab control as it should look. This will require a bit of artistic touch to get the shading etc right. If you follow the necessary norms you should be up with this in a day or two.

Author Comment

ID: 1302081
Owner drawn list boxes is OK, but with it how do I use the tree controls?

Accepted Solution

EHaimerl earned 300 total points
ID: 1302082
check out for - Tab View is what you  want: define different views and handle them from one Wnd with tabs. Its free and come with the complete source. Its designed for SDI but can be used in MDI with one line deleted.

Author Comment

ID: 1302083
I downloaded the stuff and the exe is fine.Though it is not the same as what I wanted (Same Look and Feel of Developer's studio) the functionalty is the same and hopfully the code will help. Please give me more references for the Project Workspace/ Infoviewer/ Class Viewer type tabs.
Thank U.

Expert Comment

ID: 1302084
I am not sure if I got your new question right?
If you have a look at TabViews MainFram.cpp you find

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
   m_splitterTabWnd.AddView( RUNTIME_CLASS( CTabView ),"View nr 1" );  
   m_splitterTabWnd.AddView( RUNTIME_CLASS( CviewTwo ),"View nr 2" );  
   m_splitterTabWnd.AddView( RUNTIME_CLASS( CTabView ),"View three is same as one" );  
   m_splitterTabWnd.Create( this, pContext );
   SetActiveView((CView *)m_splitterTabWnd.GetPane(0,0));
   return TRUE;

Here CTabView and CViewTwo are arbitrary example Views. Create any view you want (e.g. from CTreeView, CListView ...) and add it to splitterTabWnd.

More references?
Try weekly MFC extensions: It looks fine, but I have not tested it myselfe and it's not free. It's a lot of stuff. Have a closer look at the MFC\samples on your MSVC CD, there a examples of TreeView, ListView ...

Hope that helps - feel free to come up with detailed questions.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

705 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