How to capture mouse events of a transparent window?

I have a transparent window (created using WS_EX_LAYERED) and I want to receive mouse events in areas with a zero alpha area. As far as I know, I could:

1) Use the mouse for the mouse
2) Draw the background with an almost completely transparent color (with opacity 1)

However, the first solution takes a lot of time, and the second will slow down the rendering time, since my window is stretched to almost the entire desktop, and most of the pixels are currently completely transparent.

Is there any other way to get these mouse events?

+5
source share
1 answer

According to MSDN:

- . , - , . , WS_EX_TRANSPARENT , .

GetCursorPos, ( , - ), . , .

+1

All Articles