如何在CVIEW中显示我的ATL控件
我已经制作了一个ATL控件(ActiveX),并且可以在MFC CDIALOG
中轻松显示。现在,我需要通过使用代码(如下图),在MFC单个文档项目的cview
中显示它。 不要使用cform
,因为我的客户不需要它。他们需要在cview
中准确地控制显示。
此任务有任何教程或建议吗?
I have made an ATL control (ActiveX) and I can display it easily in MFC CDialog
. Now I need to display it in CView
of MFC single document project by using the code (just like the picture below).
Don't use CForm
because my customer don't need it. They need exactly Control display in CView
by code.
Are there any tutorial or suggestion for this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MFC CVIEW类并不直接支持在其表面上托管Win32或ActiveX控件。该功能内置在CFormView类中。如果您想在视图上轻易主机控件,则应使用 cformview 。
The MFC CView class doesn't directly support hosting of Win32 or ActiveX controls on its surface. That functionality is built into the CFormView class. If you want to readily host controls on your view, you should be using CFormView.