Solved

Using CPropertySheet in a CTabCtrl?

Posted on 2004-04-28
3
417 Views
Last Modified: 2013-11-20
I currently have a CPropertySheet with several PropertyPages, I now want to add some other options that would extend the capabilities of a property dialog. So I'd rather create my own dialog and drop a CTabCtrl on the dialog. _BUT_ CTabCtrl doesn't have AddPage as I was assuming it would. How can I add my existing pages to this TabCtrl, I'm assuming you can since MSDN says "The most common use of the tab control (CTabCtrl) is in conjunction with a property sheet." But I can't find much on the net or books about TabCtrl's...

Thx...
0
Comment
Question by:dawtcalm
3 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 400 total points
ID: 10942345
A tab control is just another control.  
A property sheet has a tab control and responds to events from that to show / hide the pages that are handled by the sheet itself, not the tab control on the sheet.

Either create your own class based on CPropertySheet and customise that.
Or respond to events generated by changing a selection in your tab control on a dialog and show/hide child dialogs that you create yourself.

It is probably simpler for you to extend the functionality of the CPropertySheet based window.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 84
repeatSeparator  java  challenge 13 57
ODBC Connection Logging, ADO.NET 6 64
Excel file not created as expected 7 72
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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