MFC应用程序,安装Windows 10更新后更改WM_LBUTTONDOWN消息 [英] MFC application, Change in WM_LBUTTONDOWN message after installing windows 10 updates

查看:173
本文介绍了MFC应用程序,安装Windows 10更新后更改WM_LBUTTONDOWN消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





安装所有更新后,我的行为开始在Windows 10上发生。 (目前我无法分辨哪个更新导致它)。它不会发生在Windows 7上,也不会在安装一些更新之前在Windows 10上发生。

我们实现MFC多文档应用程序,用户打开无模型对话框,然后鼠标左键单击应用程序工具栏按钮不起作用。我可以在调试器上看到它不会将WM_LBUTTONDOWN消息发送到与以前相同的窗口。
因此,当然,太过不起作用了。



那是回归吗?行为有变化吗?有关如何预先保留旧行为的任何说明?



我使用Spy ++并且可以看到以下区别:



在Windows 10上,WM_LBUTTONDOWN被发送到工具栏父级,即AfxControlBar90。


< 00220> 00031838 S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:592 yPos:15

< 00221> 00031838 R WM_PARENTNOTIFY

< 00222> 00070340 S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:592 ypos:15

Hi,

I have a behavior that started to happen on Windows 10 after installing all updates. (at the moment I can not tell which update cause it). It does not happen on windows 7, neither on windows 10 before installing some of the updates.
We implement MFC multi documents application, user open modelless dialog, and then mouse left click on the application toolbar button does not functional. I can see on debugger that it does not send the WM_LBUTTONDOWN message to the same window as it used to. As a result the toolabr is not functional off course.

Is that regression? Is there a known change in behavior? Any instructions how to be able to preseve the old behavior?

I use Spy++ and can see the following difference:

On windows 10, WM_LBUTTONDOWN is sent to the toolbar parent, which is AfxControlBar90

<00220> 00031838 S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:592 yPos:15
<00221> 00031838 R WM_PARENTNOTIFY
<00222> 00070340 S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:592 ypos:15



在Windows 7上,WM_LBUTTONDOWN被发送到工具栏本身,即ToolbarWindow32


On Windows 7, WM_LBUTTONDOWN is sent to the toolbar itself, which is ToolbarWindow32

< 00317> 002E09E6 P WM_LBUTTONDOWN fwKeys:MK_LBUTTON xpos:81 yPos:10

< 00318> 002E09E6 P WM_MOUSEMOVE fwKeys:MK_LBUTTON xPos:81 ypos:10

< 00319> 002E09E6 P WM_LBUTTONUP fwkeys:0000 xPos:81 yPos:10

<00317> 002E09E6 P WM_LBUTTONDOWN fwKeys:MK_LBUTTON xpos:81 yPos:10
<00318> 002E09E6 P WM_MOUSEMOVE fwKeys:MK_LBUTTON xPos:81 ypos:10
<00319> 002E09E6 P WM_LBUTTONUP fwkeys:0000 xPos:81 yPos:10



感谢您的任何帮助

Amit


Thanks for any assistance
Amit

推荐答案


在安装所有更新后,我的行为开始在Windows 10上发生。 (目前我无法分辨哪个更新导致它)。它不会发生在Windows 7上,也不会在安装一些更新之前在Windows 10上发生。

我们实现MFC多文档应用程序,用户打开无模型对话框,然后鼠标左键单击应用程序工具栏按钮不起作用。

I have a behavior that started to happen on Windows 10 after installing all updates. (at the moment I can not tell which update cause it). It does not happen on windows 7, neither on windows 10 before installing some of the updates.
We implement MFC multi documents application, user open modelless dialog, and then mouse left click on the application toolbar button does not functional.

Amit,

您可以使用新的MFC项目重现此问题吗?

Can you reproduce this problem using a new MFC project?

如果是这样,请在某个地方发布一个示例解决方案,任何人都可以访问它并尝试重现问题。

If so, please post an example solution somewhere that anyone can access it and try to reproduce the problem.

Dave


这篇关于MFC应用程序,安装Windows 10更新后更改WM_LBUTTONDOWN消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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