Editor_GetLines

Retrieves the number of the lines for the current document. You can use this inline function or explicitly send the EE_GET_LINES message.

Editor_GetLines( HWND hwnd, int nLogical );

Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

nLogical

Specifies one of the following Values.

Value

Meaning

POS_VIEW

Display Coordinates

POS_LOGICAL_A

Logical Coordinates (Count double-byte characters as two)

POS_LOGICAL_W

Logical Coordinates (Count double-byte characters as one)

Return Values

Returns the number of the lines in EmEditor. If the last line is ends with a return, the line will be counted. If the text is empty, returns one.