WTL support for ActiveX

Creating an ActiveX control when the dialog box, CreateorDoModal函数会调用AtlAxCreateDialog或者AtlAxDialogBox函数。

会创建class为AtlAxWin window class, the parent window as an ActiveX control window. WTL provides CAxWindowfor AtlAxWin encapsulated window class, and CAxWindowmay communicate with the ActiveX controls. It provides a QueryControlfunction, you can query interface.

Reproduced in: https: //www.cnblogs.com/fanzi2009/archive/2009/08/14/1546368.html

Guess you like

Origin blog.csdn.net/weixin_33682790/article/details/94192602