Troudeloup
asked on
getcursorpos - how do I get relative to a window? also, what's lpoint?
http://msdn2.microsoft.com/en-us/library/ms648390.aspx
BOOL GetCursorPos(
LPPOINT lpPoint
);
what is ?
LPPOINT lpPoint
also, how do I make it return relative to the a top level window's position?
BOOL GetCursorPos(
LPPOINT lpPoint
);
what is ?
LPPOINT lpPoint
also, how do I make it return relative to the a top level window's position?
ASKER
wait a minute, does it mean it returns the relative position in the window directly?
wow
how about returning screen coordiates?
wow
how about returning screen coordiates?
I have answered that in your other question
ASKER
which one?
also, did you mean "that" by
a) , does it mean it returns the relative position in the window directly?
or
b) returning screen coordiates?
also, did you mean "that" by
a) , does it mean it returns the relative position in the window directly?
or
b) returning screen coordiates?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
please also take a look for me
https://www.experts-exchange.com/questions/22986385/simulating-keystroke-print-a-string.html
https://www.experts-exchange.com/questions/22983831/how-do-I-save-a-screen-shot.html
https://www.experts-exchange.com/questions/22986558/window-kill-or-is-it-process-kill.html
https://www.experts-exchange.com/questions/22986489/mouseclick-windows-sdk.html
https://www.experts-exchange.com/questions/22986385/simulating-keystroke-print-a-string.html
https://www.experts-exchange.com/questions/22983831/how-do-I-save-a-screen-shot.html
https://www.experts-exchange.com/questions/22986558/window-kill-or-is-it-process-kill.html
https://www.experts-exchange.com/questions/22986489/mouseclick-windows-sdk.html
GetCursorPos(&p);
ScreenToClient(yourHwnd, &p);
LPPOINT means pointer to a POINT variable