Question

In reference to this question:Which is prefered CTabCtrl vs CPropertySheet

I have a DDK that uses MFC which I am new to. The basic example from the DDK implements a simple dialog box with 3 tabs with the "Ok" and "Cancel" button on the right side of the box.

Based on the question from the link above, seems like only CTabCtrl can have that kind of interface??(correct me if i'm wrong) However, looking at the classes involved, it seems like CTabCtrl is not used at all?? Need some explanation about this...

alt text

from Class Explorer:
CObject-->

  • CCmdTarget
    • CWnd
      • CDialog
        • CxxxDlg
      • CPropertyPage
        • CIntHelpPropertyPage
        • CxxxConfigPage
    • CWinThread
      • CWinApp
        • CWinDebugApp
          • CDriverApp
            • CxxxApp
              • CDrvCfg
    • CxxxDrvCfg
  • CSrvObj
    • CChannelObj
  • CDriverObj
    • CxxxObj
Was it helpful?

Solution

There are 2 classes derived from CPropertyPage, which is always used with CPropertySheet. No wonder there is no CTabCtrl. I'd like to explain in detail if you email me the code.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top