How could i receive the client coordinates of the cursor in an edit
box?
Printable View
How could i receive the client coordinates of the cursor in an edit
box?
GetCursorPos?
you can retrieve the caret rect with GetGUIThreadInfo:
http://msdn.microsoft.com/library/de...ndows_4grz.asp
btw getcursorpos retrieves the mouse cursor position.
sorry caret rather :-/
do i need anything extra to use the GUITHREADINFO struct?
i'm using VC++5 and my prog is in MFC. it's not recognizing this
struct as valid
any help?
eh dunno :s maybe you should install the PSDK?
guh, i was afraid you were gonna say that
what's wrong with GetCaretPos?
dunno :p
CWnd::GetCaretPos
static CPoint PASCAL GetCaretPos( );
Return Value
CPoint object containing the coordinates of the caret's position.
Remarks
Retrieves the client coordinates of the caret's current position and returns them as a CPoint.
The caret position is given in the client coordinates of the CWnd window.
silly, it's exactly what i wanted :rolleyes: :p