Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Plug-in Reference > Messages

EmEditor Plug-in Reference: EE_GET_LINES

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - Plug-in Reference - Messages

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_QUERY_STATUS

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

   lParam = 0;

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.

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.

Copyright © 2003-2016 by Emurasoft, Inc.