Advertisement

getting cursor position

Started by April 20, 2000 09:40 AM
2 comments, last by madmax22e 24 years, 7 months ago
whats the way to get the cursor pos in a win32 application? and is there a way to make a particular function get called every time the mouse position changes?
You can get the position with getcursorpos.

PROgrammer
Advertisement
ive left my microsoft programming book at school and we''re on break for quite a while, so how do you declare the varible that gets the cursor pos

? x;
fu = GetCursorPos(x);

maybe im way off, but this is how i did it in vb but it didnt have to be a special type

BOOL GetCursorPos(
LPPOINT lpPoint // address of structure for cursor position
);

typedef struct tagPOINT {
LONG x;
LONG y;
} POINT;

/sixb0nes
sixb0neshttp://www.xpression.ca

This topic is closed to new replies.

Advertisement