Ghost windows
-
Does anyone know how to do the Ghost window feature, that can be seen at: http://www.absoluteway.com/tweakwindow/window_make_it_ghost.htm[^] ?? This feature allows you to have a truely transparent window, that clicking on it behaves as though it wasn't there and transfer the click to the window bellow it... I've found this reference: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." from MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_classy32.asp[^]) But it does not seem to work.... Any suggestion?
-
Does anyone know how to do the Ghost window feature, that can be seen at: http://www.absoluteway.com/tweakwindow/window_make_it_ghost.htm[^] ?? This feature allows you to have a truely transparent window, that clicking on it behaves as though it wasn't there and transfer the click to the window bellow it... I've found this reference: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." from MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_classy32.asp[^]) But it does not seem to work.... Any suggestion?
Itay Sagui wrote: Does anyone know how to do the Ghost window feature, that can be seen at: The look can be accomplished simply by setting the
Opacity
property of your form to the desired amount. Itay Sagui wrote: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." But it does not seem to work.... What are you doing? Have you tried to override theCreateParams
and or'ing theWS_EX_TRANSPARENT
(0x00000020L) window style? - Nick Parker
My Blog | My Articles -
Itay Sagui wrote: Does anyone know how to do the Ghost window feature, that can be seen at: The look can be accomplished simply by setting the
Opacity
property of your form to the desired amount. Itay Sagui wrote: "If the layered window has the WS_EX_TRANSPARENT extended window style, the shape of the layered window will be ignored and the mouse events will be passed to the other windows underneath the layered window." But it does not seem to work.... What are you doing? Have you tried to override theCreateParams
and or'ing theWS_EX_TRANSPARENT
(0x00000020L) window style? - Nick Parker
My Blog | My ArticlesI don't care much about the look. I have no problem with the opacity of the window. I've over-ridden the CreateParams, and ORed the WS_EX_TRANSPARENT but this does not give the desired (specified?) results. What I'm trying to do is to have a window passing the mouse clicks to the window beneath it... I also forgot that this works fine, on windows from the same application, if I return HTTRANSPARENT in the WM_NCHITTEST message, but have absolutely no effect on external (other applications) windows... :(
-
I don't care much about the look. I have no problem with the opacity of the window. I've over-ridden the CreateParams, and ORed the WS_EX_TRANSPARENT but this does not give the desired (specified?) results. What I'm trying to do is to have a window passing the mouse clicks to the window beneath it... I also forgot that this works fine, on windows from the same application, if I return HTTRANSPARENT in the WM_NCHITTEST message, but have absolutely no effect on external (other applications) windows... :(
Itay Sagui wrote: What I'm trying to do is to have a window passing the mouse clicks to the window beneath it... Without looking around too much you could call
GetNextWindow
passingGW_HWNDNEXT
(2) as the second parameter to get the handle to the window below your window, thus callingShowWindow
with your correspondinghWnd
to display the lower window as you would want it to have focus. - Nick Parker
My Blog | My Articles