I know it is possible - somehow through SetWindowLong
API or managed property of WPF's Window
class at the moment of window's creation... but how to do that exactly I do not know. I simply cannot find the information of how to set style of a window so it could NOT receive any system messages about mouse click on it and any click would go through the window to the underlying windows.
Does anyone know that style code or something?
WS_EX_TRANSPARENT not enough.
Need
WS_EX_TRANSPARENT | WS_EX_LAYERED | WS_EX_TOPMOST;
And
Set the
WS_EX_TRANSPARENT
flag for the window's extended style. It makes the window transparent to mouse clicks.