BCGSoft Professional Editor for MFC
virtual CSize CBCGPEditCtrl::GetCaretSize ( ) const
virtual

Returns the size, in pixels, of the caret.

Returns
The CSize object containing dimensions of the caret.

Use this function to retrieve the dimensions of the caret. You can override GetCaretSize in a derived class to control the size of the caret.

The default implementation calculates the dimensions as (max char width X line height) in override mode and as (2 X line height) in insert mode.