Skip to main content
gamedev.net
🔒 Locked

make an lparam

Started by pavel989 Oct 11, 2008 at 5:07 PM 2 replies 700+ views
Original Post
pavel989
pavel989
how do you send info into an lparam for a mouse click? --oops was who, meant how [Edited by - pavel989 on October 11, 2008 5:55:16 PM]
pavel989
pavel989
thats the opposite of what i mean to do. If i have an x and y coordinate, how do i get it into an lparam?
is there a macro like MAKEPOINTS that does the opposite of MAKEPOINTS.
Drew_Benton
Drew_Benton
You can use the MAKELONG macro to combine two WORDs into a long that can be used as a LPARAM.

LPARAM outMouse = (LPARAM)MAKELONG(xPos, yPos);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.