Function:
SetWindowText(HWNDhWnd,LPCSTRlpString)

 

Description:
Changes the text of the specified window’s title bar (if it has one).

 

Parameters:
hWnd: Identifies the window or control whose text is to be changed.
lpString: String to be used as the new title.

 

Returns:
If an error occured, the function returns 0. If successful, the function returns a non-zero value..

 

Example:
Click on the calc icon to view a sample of the SetWindowText function.