Edit_GetLineCount macro

Gets the number of lines in the text of an edit control. You can use this macro or send the EM_GETLINECOUNT message explicitly.

Syntax


int Edit_GetLineCount(
  HWND hwndCtl
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

Return value

The return value is an integer specifying the total number of text lines in the multiline edit control or rich edit control. If the control has no text, the return value is 1. The return value will never be less than 1.

Remarks

For more information, see EM_GETLINECOUNT

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft