Link to home
Start Free TrialLog in
Avatar of Troudeloup
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?
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

POINT p;
GetCursorPos(&p);
ScreenToClient(yourHwnd, &p);

LPPOINT means pointer to a POINT variable
Avatar of Troudeloup
Troudeloup

ASKER

wait a minute, does it mean it returns the relative position in the window directly?

wow

how about returning screen coordiates?
I have answered that in your other question
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?

ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial