Jump to content

  • Log In with Google      Sign In   
  • Create Account


getting cursor position


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 madmax22e   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 April 2000 - 03:40 AM

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?

Sponsor:

#2 Promag   Members   -  Reputation: 132

Like
Likes
Like

Posted 20 April 2000 - 10:30 AM

You can get the position with getcursorpos.

PROgrammer

#3 madmax22e   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 April 2000 - 03:07 PM

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



#4 sixb0nes   Members   -  Reputation: 122

Like
Likes
Like

Posted 20 April 2000 - 04:02 PM

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

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

/sixb0nes




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS