◄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 ♦