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

x
?
Solved

CTabCtrl inside a dialog?

Posted on 1998-03-29
2
Medium Priority
?
983 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 100 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

660 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