在控件的构造函数中加上 m_bWindowOnly = True;
Flag indicating the control should be windowed, even if the container supports windowless controls.unsigned m_bWindowOnly:1; Remarks Note To use this data member within your control class, you must declare it as a data member in your control class. Your control class will not inherit this data member from the base class because it is declared within a union in the base class. See Also CComControlBase Overview | Class Members | CComControlBase::m_bWndLess
本文介绍了一个控件类成员变量m_bWindowOnly的作用,该变量指示控件是否应该以窗口模式运行,即使容器支持无窗口控件。文章强调了要在自定义控件类中正确声明并使用此数据成员。
1354

被折叠的 条评论
为什么被折叠?



