Adding dialogs to a tab control in a dialog using MFC's
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]
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
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
(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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement