简体   繁体   中英

How can I display my ATL control in 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?

在此处输入图像描述

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM