简体   繁体   中英

MFC: How to Identfy if Dialog was created using CPropertySheet or CTabCtrl

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...

替代文字

from Class Explorer:
CObject-->

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM