The keyboard control codes specified by "flags" reflects the keyboard state at the time the mouse message was initiated. This may or may not reflect the current keyboard state.
param1 contains the position of the pointing device in window coordinates relative to the bottom-left corner of the window.