|
-
Aug 27th, 2002, 08:32 PM
#1
Thread Starter
Frenzied Member
-
Aug 27th, 2002, 08:42 PM
#2
Frenzied Member
POINT pnt;
int x;
int y;
GetCursorPos(pnt);
x = pnt.x;
y=pnt.y;
Magiaus
If I helped give me some points.
-
Aug 27th, 2002, 09:01 PM
#3
Thread Starter
Frenzied Member
thanks
-
Aug 28th, 2002, 05:36 AM
#4
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 28th, 2002, 08:25 AM
#5
Thread Starter
Frenzied Member
is there a way to see where it is on my window? I guess GetCursorPos wasn't what I was looking for
-
Aug 28th, 2002, 10:02 AM
#6
You can map the screen coordinates to your window coordinates. There is a function for this.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 28th, 2002, 10:21 AM
#7
Frenzied Member
GetWindowRect() is the function CB is referring to.
-
Aug 28th, 2002, 10:29 AM
#8
No, I actually mean ScreenToClient
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 28th, 2002, 10:31 AM
#9
And if you have strange logical coordinates you can then use DPtoLP to convert the return of ScreenToClient to your own little world.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|