What is preferable CTabCtrl in comparison with CPropertySheet in MFC?

I do not know how to use both of them. Thus, a sample code with pluses and minuses is perfect. Which one is preferable? Why?

+7
c ++ mfc ctabctrl
source share
1 answer

Also not recommended, they serve a variety of purposes. If you need a multi-page dialog, use CPropertySheet. If you need a dialog with multiple pages, while part of the dialog remains fixed, use CTabCtrl. CTabCtrl can use anything that CPropertySheet can do, but since CTabCtrl is more difficult to use, it cannot be used unless you need its extra flexibility. CPropertySheet can also be used as a wizard by setting several flags.

The following is an example of using CTabCtrl:

aCTabCtrl Example http://rabien.com/image/xcolordialog1.png

If it was CPropertySheet, then it would be impossible to put color swatches outside the tabs. (And the buttons should be down)

CPropertySheet Tutorial

CTabCtrl Tutorial

+16
source share

All Articles