在MFC CView中托管.net用户控件 [英] Host a .net User Control in an MFC CView

查看:174
本文介绍了在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对话框中使用WinForms控件 [ ^ ]
http://msdn.microsoft.com/en-us/library/ahdd1h97.aspx [ ^ ]
I suggest reading this:
Using WinForms controls in an MFC dialog[^]
http://msdn.microsoft.com/en-us/library/ahdd1h97.aspx[^]


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆