如何在CVIEW中显示我的ATL控件

发布于 2025-02-13 22:01:42 字数 294 浏览 1 评论 0原文

我已经制作了一个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?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌辣 2025-02-20 22:01:42

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文