Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling tabs in unmanaged VC++

Status
Not open for further replies.

courtarro

Programmer
Oct 26, 2005
16
US
I'm new to VC++ but used to languages/architectures like C#, Flex, VB, etc. In most of those languages, tab controls are handled like containers, where the OS and/or runtime handle creating the tabs, switching between them, etc. It looks to me like VC++ (with MFC) does things at a lower level.

My question is - is there a preferred way to handle tab controls in MFC programming? Do you create a control for each tab, then show/hide each one as the tabs change?
 
You use property sheets. Each sheet is designed as a dialog without an OK/Cancel button. They are added to the property sheet control which manages them. You can tell it whether or not to save the contents before moving to the next tab.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top