israel022697
asked on
Adding a dialog into a CTabCtrl
I have a dialog, within it I have a CTabCtrl, I have another two smaller dialogs which are the same size of the CTabCtrl. I would like to add these to dialogs into the CTabCtrl.
I looked in the help and documents I have and all I could find is how to insert a tab using the CTabCtrl::InsertItem function that takes a TC_ITEM structure as parameter but in this structure all I can set is the tab text, image .. but I cannot reference a dialog to the tab.
How can I do that ?
I don't want to use PropertySheet from other reasons.
I looked in the help and documents I have and all I could find is how to insert a tab using the CTabCtrl::InsertItem function that takes a TC_ITEM structure as parameter but in this structure all I can set is the tab text, image .. but I cannot reference a dialog to the tab.
How can I do that ?
I don't want to use PropertySheet from other reasons.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If u want to add the dialogs by default, then u have to work with PropertyPage for that. If u want the CTabCtrl, then u have to trap the controls and display the dialog according to ur need. No other way for that.........
ASKER
You're saying that I have to catch all the tab control events and show and hide my dialogs manually ? ( and position them according to the tab control position ?? )