on the right track??
I''m new to using MFC in Visual C++. I''d like to have a tab control with different stuff on each page. You apparently can''t drag and drop the controls onto the page like in C++Builder. So I''ve been looking for info on how to do this and can''t come up with much. I''ve tried searching the msdn but it is so huge i can''t narrow down what i''m trying to do. Am I on the right track with the following approach? and how do i actually do this?
I create a new dialog resource for each page, and put the controls onto that dialog, set it to a child with no frame, then load it somehow into the tab control in the OnCreate() function?? Is this even remotely correct?
Thanks
AZ
I can''t find it on MSDN, but there is a section in the Win32 Developer''s Referance help file on tab controls. It includes an example of creating a tabbed dialog. Basically they just create a dialog from a template and position it to the "display" area of the tab control. As near as I can tell that is an application construct, i.e. the tab control doesn''t actually know where that is and it is up to you to calculate it. They also suggest using a property sheet instead of a dialog template.
Keys to success: Ability, ambition and opportunity.
In MSDN, look under Books/Programming the Windows 95 User Interface/Part 1/Chapter Four/Property Sheets...
Dave
Dave
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement