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;
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.
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.
Send feedback on this topic to Emurasoft