简体   繁体   English

CPropertySheet中有CTabCtrl吗?

[英]Is there a CTabCtrl in CPropertySheet?

CPropertySheet looks like it has a CTabCtrl inside it. CPropertySheet看起来里面有一个CTabCtrl But when i checked the code of CPropertySheet , I saw there is no tab control instance. 但是当我检查CPropertySheet的代码时,我看到没有选项卡控件实例。 So, how does it manage the tab control? 那么,它如何管理选项卡控件呢?

Besides, i saw in AddPage and RemovePage function, it sends PSM_ADDPAGE and PSM_REMOVEPAGE message to itself but didn't handle those messages. 此外,我在AddPageRemovePage函数中看到,它向自己发送PSM_ADDPAGEPSM_REMOVEPAGE消息,但没有处理这些消息。 Why is it doing it? 它为什么这样做?

Property sheets aren't actually implemented in MFC - MFC is just a thin wrapper around the Win32 API that creates them. 属性表实际上并没有在MFC中实现 - MFC只是创建它们的Win32 API的一个薄包装器。 The tab control is created and managed internally by the property sheet API, and it doesn't expose that control to outside users. 选项卡控件由属性表API在内部创建和管理,并且不会将该控件公开给外部用户。 You aren't meant to interact with the tab directly. 您不打算直接与选项卡进行交互。 Instead you use the property sheet messages (or MFC wrapper functions) and it handles the tab control automatically. 而是使用属性表消息(或MFC包装函数),它自动处理选项卡控件。

Similarly, the PSM_ADDPAGE and PSM_REMOVEPAGE are handled internally by the property sheet's dialog procedure. 同样, PSM_ADDPAGEPSM_REMOVEPAGE由属性表的对话框过程在内部处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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