本文介绍了在MFC CView中托管.net用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我创建了一个c#用户控件.

我有一个MFC项目,并且有MFC视图.
MFC视图属于CFormView类,不能将其更改为其他类.

我必须在MFC CFormView中托管c#用户控件.我希望将c#用户控件添加到CFormView中,就像按钮,复选框等添加到CFormView中一样.

我该怎么办?

谢谢

Hello,

I created a c# user control.

I have an MFC project and I have an MFC view.
The MFC view is of class CFormView and it can not be changed to be some other class.

I have to host the c# user control in my MFC CFormView. I want the c# user control to be added to the CFormView exactly as buttons, checkboxes, etc are added to the CFormView.

How can I do it?

Thanks

推荐答案


这篇关于在MFC CView中托管.net用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 08:36
查看更多