문제

When using the Win32 API message loop (or any higher level abstraction of the same such as System.Windows.Forms.IMessageFilter) to get a message, how do I find out who/which control/which component/which piece of code posted the WM_MOUSEMOVE?

Does that even make sense in the context of Win32? Something akin to the object sender in .NET events.

I checked the documentation for WM_MOUSEMOVE and I can't find anything. It's been a decade I haven't used Win32 API extensively since.

도움이 되었습니까?

해결책

All window messages are sent to a specific HWND. That's the receiver. The sender, for window messages, is the operating system as it generates the window message for the specific window when it decides that a message should be sent to the window.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top