从CLI向MFC-View发送消息 [英] Send message from CLI to MFC-View

查看:125
本文介绍了从CLI向MFC-View发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

以下问题:我有一个MFC视图,它包含一个CWinFormsControl. 这包括System :: Windows :: Forms :: UserControl,其中还包括来自的Chart控件. NET图表库. 是否可以捕获项目的CLI部分,即OnRClick消息?我想从CLI部件获取消息到MFC-View,因为在那里进行了处理. 这怎么办?我认为ChartControl会获取所有消息,因此不会有消息到达UserControl或WinFormsControl,因为它们的大小都相同,并且ChartControl处于最高位置.

Hello!

Following problem: I have a MFC-view and it contains a CWinFormsControl. This includes a System::Windows::Forms::UserControl, which further includes a Chart control from a. NET Charting Library. Is it possible to catch in the CLI part in the project, the OnRClick message? I want to get the message from the CLI-part to the MFC-View because of handling it there. How could this be done? I think the ChartControl gets all the mssages so no messages arrive the UserControl or WinFormsControl because they are all sized the same and the ChartControl is topmost.

 

感谢有用的提示.

Thanks for helpful tips.

推荐答案

CWinFormsControl<MyControl> m_MyControl;

// ...

m_MyControl.GetControl()->MouseClick+= MAKE_DELEGATE( System::EventHandler, OnMouseClick );


这篇关于从CLI向MFC-View发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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