?
Solved

Using CPropertySheet in a CTabCtrl?

Posted on 2004-04-28
3
Medium Priority
?
434 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
[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
3 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 1600 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

770 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