如何使单击 - 和看透总是top'窗口“ [英] How to make a click- and see-through 'always on top'-window
问题描述
我要显示一个半透明始终位于顶层的窗口有一些信息,但我不希望这个窗口把输入或接收焦点。所有的鼠标点击应该去underlaying的窗口。
I want to display an semi-transparent always-on-top window with some information, but I do not want this window to take input or receive focus. All mouse-clicks should go to the underlaying window.
我记得在shell更换使用年限见状回来,但我不记得女巫。
I remember seeing this in a shell-replacement application years back, but I can't remeber witch.
任何想法如何实现与Delphi或C#
Any Ideas how to achieve this effect with delphi or c#?
更新这样的效果:
我不能完全得到所提出的解决方案,德尔福工作。返回HTTRANSPARENT为NCHITTEST消息将停止所有mousemessages达到了形式,但它希望它向下传递到z顺序下一个窗口。这是方法换货跨进程工作,或者只彪在spesific窗口childelements?
I can't quite get the proposed solution to work with delphi. Returning HTTRANSPARENT for the NCHITTEST-message will stop all mousemessages reaching the form, but it want pass it down to the next window in z-order. Is this method ment to work across processes, or is it only ment to work on childelements of a spesific window?
如果我设置扩展风格标志WS_EX_TRANSPARENT,不过,所有的鼠标点击工作将穿越到下一个窗口,但我不会让NCHITTEST消息可言的,将无法控制那里的窗户应该是点击率或不...
If I set the ExStyle flag WS_EX_TRANSPARENT, though, all mouseclicks will travel through into the next window, but I will not get the NCHITTEST-message at all, and will not be able to control where the windows should be click-through or not...
推荐答案
这StackOverflow的线程应该有希望回答你的问题。
This StackOverflow thread should answer your question hopefully.
这篇关于如何使单击 - 和看透总是top'窗口“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!