当用户双击打开文件时,GetOpenFilename导致WM_LBUTTONUP消息显示在其下的窗口中 [英] GetOpenFilename causing a WM_LBUTTONUP message to window under it when user double-clicks a file to open it
本文介绍了当用户双击打开文件时,GetOpenFilename导致WM_LBUTTONUP消息显示在其下的窗口中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
GetOpenFilename,当用户双击一个文件以将其打开时,导致WM_LBUTTONUP消息显示在其下.如果用户左键单击文件图标以选择它,则单击打开"图标.按钮,这不会发生.是否有针对此的解决方法或解决方法(除了在窗口下面"处理该WM_LBUTTONUP消息以外?).
GetOpenFilename causing a WM_LBUTTONUP message to window under it when user double-clicks a file to open it. If the user left clicks the file icon to select it, then clicks the "Open" button, this doesn't happen. Is there a fix or workaround for this (other than handling that WM_LBUTTONUP message in the window "beneath"?).
推荐答案
您好,
您可以做的是吃"函数/方法GetOpenFilename返回后的窗口消息.实现一个简单的while(GetMessageLoop),它将获取消息并将其丢弃.
,谢谢,
Mike.
Hi,
What you can do is to "eat" the window messages after the function/method GetOpenFilename has returned. Implement a simple while(GetMessageLoop), that will get the message and throw it away.
Thanks,
Mike.
这篇关于当用户双击打开文件时,GetOpenFilename导致WM_LBUTTONUP消息显示在其下的窗口中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文