GetCaretPos

2.x

  void GetCaretPos(lppt)    
  POINT FAR* lppt; /* address of structure to receive coordinates */

The GetCaretPos function retrieves the current position of the caret.

Parameters

lppt

Points to a POINT structure that receives the client coordinates of the caret's current position. The POINT structure has the following form:

typedef struct tagPOINT {   /* pt */
   int x;
   int y;
} POINT;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

This function does not return a value.

Comments

The caret position is always given in the client coordinates of the window that contains the caret.

See Also

SetCaretPos