Click to See Complete Forum and Search --> : Adding Controls to CTabCtrl


Malamber
April 29th, 1999, 07:42 PM
I've been working on a project that has a Tab Control inside a property sheet. I am not too fluent with adding controls to a CTabCtrl object. Could someone give me an example to say... add an Edit Box to a page of the control. Thanks in advance for some help

ans
April 30th, 1999, 06:57 AM
I'm not sure to understand exactly what you want to do but I think you've been confused because having a CTabCtrl in a property sheet sound weird.

There are two solutions :
1 - you use one property sheet and several CPropertyPage to use with it (there is no resource template for the property sheet and one resource template for every CPropertyPage.

2- you use a CTabCtrl inside a CDialog. In this case you have to put in the resource template all the controls needed. Then in your program you have to hide and show the controls when needed to give the impression that you're changing the pages of the tab control.

Malamber
April 30th, 1999, 02:04 PM
I know it sounds wierd. Let me throw some background on the solution I'm coming up with. I'm working an SDI app with the base view being FormView. I have successfully made the basic look of the app a PropertySheet with some pages. On one page, I want another breakdown of two more sheets made from the CTabCtrl. One I can't understand from the references is how to add a common control to the CTabCtrl. I was under the impression that a resource template could not be used with a CTabCtrl, ie a Dialog box with the controls built in. I thought that the controls needed to be ::Created at run-time and attached to the page of the CTabCtrl. This make any more sense on what I am trying to do? Thanks greatly