Moving mouse cursor programmatically

I believe that you’re missing a correct WPARAM for the WM_LBUTTONDOWN message, which for the left-button is MK_LBUTTON

 #define MK_LBUTTON          0x0001

Leave a Comment