1) In MFC dialog app, open dialog resource, right click and click "Insert ActiveX control",
then add class and variable
2) In Class view, right project, select "Add Class...", "Add Class from MFC ActiveX control"
and select target ocx, then a wraper class will be created
3) add to toolbox, right click empty area of toolbox and select "add/remove item", choose ocx
control
then add class and variable
2) In Class view, right project, select "Add Class...", "Add Class from MFC ActiveX control"
and select target ocx, then a wraper class will be created
3) add to toolbox, right click empty area of toolbox and select "add/remove item", choose ocx
control
本文介绍如何在MFC对话框应用程序中插入ActiveX控件:首先通过资源编辑器打开对话框,右键选择“插入ActiveX控件”,然后添加类和变量;接着在类视图中为选定的目标OCX文件创建包装类;最后将控件添加到工具箱以方便使用。

1694

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



