GetCaretPos

  BOOL GetCaretPos(lpPoint)    
  LPPOINT lpPoint; /* address of structure to receive coordinates */

This function retrieves the caret's current position (in client coordinates), and copies them to the POINT structure pointed to by the lpPoint parameter.

Parameters

lpPoint

Points to the POINT structure that is to receive the client coordinates of the caret.

Return Value

Returns TRUE for success, FALSE for failure.

Comments

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

See Also

SetCaretPos