In MFC Application, how can we differentiate whether a control is a standard control like CComboBox or it is an custom active-x control?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use CWnd::GetControlUnknown
:
Return Value
A pointer to the IUnknown interface of the OLE control represented by this CWnd object. If this object does not represent an OLE control, the return value is NULL.