Adding dialogs to a tab control in a dialog using MFC's

Started by
2 comments, last by level10boy 21 years, 3 months ago
A long title so let me explain. I'm trying to get dialogs into tabs of a tab control, which is in a dialog itself. Using MFC's though. Any suggestions [edited by - level10boy on January 20, 2003 7:35:17 PM]
Advertisement
Afternoon, level10boy.

I don''t use MFC myself, but do the equivalent of:
1) Creating each Tabbed dialog you require.
2) Keep a variable for telling the program which dialog to display.
3) check for the Tab control being clicked, and which tab button it was.
4) Show/Hide the appropriate dialogs.

You also have to make sure the dialogs are moved correctly when the user resizes the window.

Cheers,
Scronty
- "Has the world gone mad, or am I at work?"
(Gah, long post eaten...)

Basically, MFC uses property pages to represent the dialog for each tab. Create the property page (usually in the resource editor - it''s a dialog type) and then attach it to the tab control at runtime.
Cheers all, I''d come up with the Scrontys'' solution this morning just before reading the replies but good to know I''m on the right track. Thanks guys.

This topic is closed to new replies.

Advertisement