win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinSetWindowText (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
BOOL WinSetWindowText(hwnd, pszText)
HWND hwnd;      /* handle of the window      */
PSZ pszText;    /* points to the text to set */
 
The WinSetWindowText function sets the window text for a window to the
specified text. This function sends a WM_SETWINDOWPARAMS message to the
hwnd window.
 
If this function is called with a frame-window handle, the text of the
title-bar-frame control is changed.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwnd       Identifies the window to set the text for.
 
pszText    Points to the window text.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinQueryWindowText, WM_SETWINDOWPARAMS