• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

Using CPropertySheet in a CTabCtrl?

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
dawtcalm
Asked:
dawtcalm
1 Solution
 
AndyAinscowCommented:
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now