Jump to content
  • Advertisement

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

This topic is 5660 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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

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
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!