|
-
Feb 14th, 2003, 02:18 PM
#1
Thread Starter
Member
Getting Caret's Position
Using the win32 API calls GetCaretPos and ClientToScreen with a POINTAPI structure is not returning the right values for the screen posistion of the caret. It also only updates when the window is moved.... heres the code:
GetCaretPos Pt
ClientToScreen hWnd, Pt
Text1.Text = Pt.X ' Update
Text2.Text = Pt.Y
What am I doing wrong? I need screen coords, not client.
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
|