Archived

This topic is now archived and is closed to further replies.

level10boy

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

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
(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.

Share this post


Link to post
Share on other sites