I need to capture mouse events for a semi-transparent window. However,
mouse events are never received by this window. I read MSDN (hit test
with transparency) but it is not clear what to do. I need to receive
WM_MOUSEMOVE with a semi-transparent window.
First I call...
::SetWindowLong(hWnd, GWL_EXSTYLE, ::GetWindowLong(hWnd, GWL_EXSTYLE) |
WS_EX_LAYERED);
Then I call the GetProcAddress(..., "SetLayeredWindowAttributes");
The transparency works fine, but the dialog doesn't receive mouse
events.
Anyone know how?
Thanks,
Chris