EE_GET_LINES

Retrieves the number of the lines for the specified document. You can send this message explicitly or use the Editor_DocGetLines inline function or the Editor_GetLines inline function.

EE_GET_LINES
wParam = (WPARAM) MAKEWPARAM(nLogical, iDoc+1);
lParam = hDoc;

Parameters

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)

iDoc

Specifies the index of the target document. A one-based index should be specified at the higher word of wParam. If 0 is specified at the higher word of wParam, the currently active document will be targeted.

hDoc

Optionally, specifies the handle to the target document. iDoc must be zero if you specify this parameter.

Return Values

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