CSGetMaxVisibleRows Function
Description
Gets the maximum number of visible rows for the current size of the console windows. This is computed simply by dividing the window height with the current console line height as returned by CSGetLineHeight.
Syntax
VB/A 32bits
Private Declare Function CSGetMaxVisibleRows Lib "consoul_010205_32.dll" ( _
ByVal hWnd As Long _
) As Integer
VB/A 64bits
Private Declare PtrSafe Function CSGetMaxVisibleRows Lib "consoul_010205_64.dll" ( _
ByVal hWnd As LongPtr _
) As Integer
Return Value
The return value is the number of visible rows, counting one for the last displayable row even if it may be only partially visible.
Parameters
hWnd
The window handle (HWND) of the Consoul window, as returned by CSCreateLogWindow.
Remarks
See CSGetLineHeight for more information on how the line height is computed and CSGetMaxVisibleCols to get thenumber of visible columns, which is not as obvious as computing the number of rows is, based on the current Consoul window width.
Last updated: May 13 2022.