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.