Retrieves the number of the lines for the specified document. You can use this inline function or explicitly send the EE_GET_LINES message.
Editor_GetLines( HWND hwnd, int iDoc, int nLogical );
Specifies the window handle of the view or frame of EmEditor.
Specifies the index of the target document. If -1 is specified, the currently active document will be targeted.
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)
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.