
Tab Control or Property Sheet?
I'm a little confussed about the differences between CTabCtrl and
CPropertySheet. I need to create a tabbed dialog box but I also need an
area off to the left (outside of the tabs) where I can put controls. It
would also be nice to be able to remove or add tabs while the tabs were
visible.
I have looked at the PropDlg example and it shows how to create a
CPropertySheet that contains a couple CPropertyPage objects. It also shows
how to create a "preview" area off the the right of the dialog box. There
are two problems with this (for me). First, I can't figure out how to
extend the window to the left instead of just to the right. Second, there
doesn't seem to be a way where I can use the dialog editor in VC++ to create
and position the controls that are directly on the CPropertySheet. In the
ProgDlg example, they just manual did it with the create member function.
I also took a look at the Fire example. It showed how to use CTabCtrl.
This looks great because I could place the control anywhere on a dialog box
and still create any other controls along side it using the dialog editor.
But, I don't see where I can use individual dialogs (like CPropertyPage) to
switch to when a different tab is selected.
Which one do I use? Can what I would like to do be done?