GetWindowTextLength

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

This function returns the length in characters of the given window's caption title. If the hwnd parameter identifies a control, the GetWindowTextLength function returns the length in characters of the text within the control instead of the caption.

Parameters

hwnd

Identifies the window or control.

Return Value

The return value specifies the text length in characters. It is zero if no such text exists.

See Also

GetWindowText, SetWindowText