SetWTitle
SetWTitle
Set title of a window and redraw title bar Str255 newTitle ; length-prefixed string for new title SetWTitle changes the tile of the specified window and redraws the title bar. newTitle is a pointer to a length-prefixed string that will be displayed in the
title-bar of the window.
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>
/* ... */
SetWTitle( myWindow, "\pUn titled Edit Window" );