SetWTitle
SetWTitle Set title of a window and redraw title bar
#include <Windows.h> Window Manager
void SetWTitle( theWindow, newTitle );
WindowPtr theWindow ; ID of window
Str255 newTitle ; length-prefixed string for new title
SetWTitle changes the tile of the specified window and redraws the title bar.
theWindow is a WindowPtr obtained via NewWindow or GetNewWindow.
newTitle is a pointer to a length-prefixed string that will be displayed in the
title-bar of the window.
Returns: none

Notes: The title text is drawn using the system font.
If newTitle is too long to fit in the title bar, the text is truncated as
follows: If the window has a close box, characters are truncated from the
right side. If there is no close box, the text is centered and truncated from
both ends. Should the window width expand, more of the truncated title will
be displayed.
Example
#include <Windows.h>
WindowPtr myWindow;
/* ... */
myWindow = GetNewWindow( MYEDIT_WNDO, NIL, -1 );
SetWTitle( myWindow, "\pUn titled Edit Window" );