Solved

CTabCtrl inside a dialog?

Posted on 1998-03-29
2
980 Views
Last Modified: 2008-02-01
Need source to implement CTabCtrl in a dialog.  I created all of my pages as dialogs and would rather use CTabCtrl instead of property pages in my main dialog box.  I don't want the APPLY button or any of the buttons that come along with CPropertyPage but would like to setup each page in the same manner.  Am I forced to use CPropertyPage?  I placed the CTabCtrl control in my main dialog and in OnInitDialog was successful in adding the tabs but now need to place the actual dialogs on each of the pages.  Help...point me to some good code...
0
Comment
Question by:xlr8tn
[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 Comments
 
LVL 3

Accepted Solution

by:
LucHoltkamp earned 50 total points
ID: 1183924
The CTabContral is just a simple control, you have to put ALL your controls in ONE dialog and hide an disable them yourself according to the position of the tab. This will also result in flickering on the screen as the controls are switched on and off.
For this reason it's not a good idea to use CTabControl in dialogs. Better use a propertypage.

.luc.
0
 

Author Comment

by:xlr8tn
ID: 1183925
I found an example that allowed me to create my tabs using CPropertyPage referencing my dialogs.  There was a trick involved with using a picture box and then in OnInitDialog changing some of the attributes.  I actually got it to work with very little effort.  I guess what I was really looking for was how to get rid of the buttons that come on a propertysheet (i.e. Apply, Cancel, and OK).  
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

729 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