Solved

Using CPropertySheet in a CTabCtrl?

Posted on 2004-04-28
3
413 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
Unix / Linux grid computing 5 125
maxBlock challenge 30 99
sumHeights2  challenge 7 75
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This video discusses moving either the default database or any database to a new volume.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now