ICaretPositionProvider::GetCaretPosition method
Returns the position and height of the caret in the ActiveX control. Returns error if no caret is showing.
Syntax
HRESULT GetCaretPosition(
[out] POINT *pptCaret,
[out] float *pflHeight
);
Parameters
- *pptCaret [out]
-
Position of the caret
- *pflHeight [out]
-
Height of the caret
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
See also
- ICaretPositionProvider
Show: