SetWindowText
SetWindowText is a Windows API function used to change the text associated with a window or control. It is part of the User32 library and can modify a window’s caption (title bar) or the text displayed by a child control such as a button, edit box, or static text. In code, SetWindowText is commonly called to update user interface labels or titles at runtime.
The function has two parameters: a handle to the window or control (hWnd) and a string (lpString)
SetWindowText sends a WM_SETTEXT message to the specified window. The window procedure for that class processes
Return value and error handling: the function returns a nonzero value (TRUE) on success and zero (FALSE)
See also: WM_SETTEXT, GetWindowText, and related control text functions. SetWindowText is widely used in GUI applications