Group: Window - Library: user32
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.
Setting properties of the window: caption and user-defined value
How to position the GETPRINTER() dialog
BOOL SetWindowText(
HWND hWnd, // handle to window or control
LPCTSTR lpString // title or text
);
DECLARE INTEGER SetWindowText IN user32;
INTEGER hWnd,;
STRING lpString
hWnd [in] Handle to the window or control whose text is to be changed.
lpString [in] Pointer to a null-terminated string to be used as the new title or control text.
If the function succeeds, the return value is nonzero.