使窗口对WindowFromPoint透明,也可能对EnumWindows透明吗? [英] Make window transparent to WindowFromPoint, and possibly EnumWindows also?

查看:62
本文介绍了使窗口对WindowFromPoint透明,也可能对EnumWindows透明吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,标题说明了一切.

原因是我的程序的最顶层窗口层行为干扰了chrome网页浏览器(以及可能的其他程序)的拖放目标行为,涉及剥离标签并将其拖放到chrome的其他实例上. > (我的程序是btw: http://sourceforge.net/projects/windowshades/ [

Yep, the title says it all.

The reason is that my programs topmost-window-layer-behavior interferes with the drop-target behavior of the chrome web browser (and likely other programs), with regards to peeling off tabs and dropping them on other instances of chrome.
(my program is this btw: http://sourceforge.net/projects/windowshades/[^], you see it''s violating windows-design-guidelines by staying topmost despite everything you can throw at it, which leads to the current problem which i''m trying to fix :P)

[My current way of dealing with this problem is i detect when a person is peeling off chrome-tabs and literally hide the overlay until the point when they release the mouse, and naturally i want to solve this problem correctly to prevent interference with other programs which i''m not aware of]

And right now i''m assuming that the solution will be to to make my program transparent to WindowFromPoint, and possibly other windows discovery methods like EnumWindows.

推荐答案

尝试从WM_NCHITTEST返回HT_TRANSPARENT.
Try returning HT_TRANSPARENT from WM_NCHITTEST.


这篇关于使窗口对WindowFromPoint透明,也可能对EnumWindows透明吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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