HwndHost-诸如WndProc,TabIntoCore等重写的函数不会被调用 [英] HwndHost - overritten functions like WndProc, TabIntoCore etc. get no invoke

查看:172
本文介绍了HwndHost-诸如WndProc,TabIntoCore等重写的函数不会被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们尝试将Delphi窗口托管到Wpf应用程序中,但存在一些小问题.

We try to host a Delphi Window into a Wpf-Application, there are some small problems.

我们无法将焦点设置到包含win32-Application的选项卡上.

We are not able to set the focus to the tab which contains the win32-Application. 

我们尝试覆盖WndProc和其他一些函数,但是它们没有得到调用.

We tried to override the WndProc and some other functions, but they do not get the call.

我们为什么没有得到这些函数的调用?

Are there any reasons why we do not get the call of these functions?

推荐答案


诺比,


Hi noibi,

>>我们无法将焦点设置到包含Win32应用程序的标签上.

据我所知,该程序属于另一个程序域.因此,您不能将焦点设置到包含win32应用程序的选项卡.

As far as I know, The program belongs to a different program domain. So, you can not able to set the focus to the tab which contains the win32 Application.

以下链接可能对您有所帮助.

The following links may be helpful for you.

在WPF中托管Win32内容:
https://msdn.microsoft.com/en-us/library/aa970061 (v = vs.110).aspx

Hosting Win32 Content in WPF:
https://msdn.microsoft.com/en-us/library/aa970061(v=vs.110).aspx

此外,我建议,如果它与WPF相关,则可以将可以在任何计算机上编译并运行的示例项目上载到OneDrive,并将链接发布到此处.这将帮助我们快速分析您的问题.

Also, I suggest that if it is related to WPF, you can upload a sample project that can be compiled and run on any computer to OneDrive and post the link to it here. It will help us quickly analyze your problem.

共享OneDrive文件和文件夹:
https://support.office. com/zh-CN/article/Share-OneDrive-files-and-folders-9fcc2f7d-de0c-4cec-93b0-a82024800c07

Share OneDrive files and folders:
https://support.office.com/en-us/article/Share-OneDrive-files-and-folders-9fcc2f7d-de0c-4cec-93b0-a82024800c07

最好的问候,

Yohann Lu

Yohann Lu


这篇关于HwndHost-诸如WndProc,TabIntoCore等重写的函数不会被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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