CSSetCaretWidth Function

Description

Sets the width of the caret, in pixels. The caret width is not limited.

Syntax

VB/A 32bits

Private Declare Function CSSetCaretWidth Lib "consoul_010205_32.dll" ( _
  ByVal hWnd As Long, _
  ByVal wWidth As Integer _
) As Integer

VB/A 64bits

Private Declare PtrSafe Function CSSetCaretWidth Lib "consoul_010205_64.dll" ( _
  ByVal hWnd As LongPtr, _
  ByVal wWidth As Integer _
) As Integer

Return Value

The return value is the previous caret width.

Parameters

hWnd

The window handle (HWND) of the Consoul window, as returned by CSCreateLogWindow.

wWidth

The new caret height.

Last updated: May 13 2022.