Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get position of cursor
#9
Hi!
I use the below function many times.

int x y
int h=GetCaretXY(x y)

to get caret coordinates in "Microsoft word 2003 on my windows XP"
The (h,x, y) are alway (0, 0, 0). Sad
It is relative to screen and works for Notepad, however.

I search on the internet for a long time
The problem seems that after GetGUIThreadInfo
the g.hwndCaret =0, g.rcCaret.left .... are not exist.
Can QM experts help me, please!


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)