GetWindowTextLength

2.x

  int GetWindowTextLength(hwnd)    
  HWND hwnd; /* handle of window with text */

The GetWindowTextLength function retrieves the length, in bytes, of the text in the given window's title bar. If the window is a control, the length of the text within the control is retrieved.

Parameters

hwnd

Identifies the window or control.

Return Value

The return value specifies the text length, in bytes, not including any null terminating character, if the function is successful. Otherwise, it is zero.

Comments

This function causes the WM_GETTEXTLENGTH message to be sent to the given window or control.

See Also

GetWindowText