Advertisement

on the right track??

Started by December 01, 2000 04:13 PM
2 comments, last by AbsoluteZero 24 years, 1 month ago
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.
Advertisement
In MSDN, look under Books/Programming the Windows 95 User Interface/Part 1/Chapter Four/Property Sheets...

Dave
msvc: worst help system ever!

cmaker

- its not the principle. its the money.
cmaker- I do not make clones.

This topic is closed to new replies.

Advertisement