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
Solved

Using CPropertySheet in a CTabCtrl?

Posted on 2004-04-28
3
419 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
has22 challenge 11 104
matchUp  challenge 6 69
wordmultiple challenge 12 141
Sed question 2 100
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 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