int GetWindowTextLength(hWnd)
This function returns the length of the given window's caption title. If the hWnd parameter identifies a control, the GetWindowTextLength function returns the length of the text within the control instead of the caption.
Parameter | Type/Description |
hWnd | HWND Identifies the window or control. |
The return value specifies the text length. It is zero if no such text exists.