GetMessagePos vs. GetCursorPos
GetMessagePos will return the position of the cursor when the message was added to the message queue. GetCursorPos will return the current position of the cursor (that can have changed since the message was handled by the application.)
It is better to use GetMessagePos as it will improve how the application reacts to the user action (particularly handling the right-click button.)
Comments
Add Comment