The WindowEx.SetWindowText function changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed.
boolean WindowEx.SetWindowText(
number hWnd, --handle of window or control
string lpString --address of string
);
Parameters
hWnd
Identifies the window or control whose text is to be changed.
lpString
string to be used as the new title or control text.
Return Values
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.