MSDN makes it so confusing...how on earth do I use it?
:confused: :confused: :confused:
Printable View
MSDN makes it so confusing...how on earth do I use it?
:confused: :confused: :confused:
POINT pnt;
int x;
int y;
GetCursorPos(pnt);
x = pnt.x;
y=pnt.y;
thanks :)
GetCursorPos(&pnt);
!!!
is there a way to see where it is on my window? I guess GetCursorPos wasn't what I was looking for :(
You can map the screen coordinates to your window coordinates. There is a function for this.
GetWindowRect() is the function CB is referring to.
No, I actually mean ScreenToClient
And if you have strange logical coordinates you can then use DPtoLP to convert the return of ScreenToClient to your own little world.