WinSetTitle
Appearance
Prototype:
APIRET16 APIENTRY16 WinSetTitle ( PSZ szTitle ) ;
Linkage Definition:
IMPORTS WinSetTitle = PMSHAPI.93
Parameters:
PSZ szTitle New window title text.
Comments:
This function is for VIO programs, and allows them to set their containing window's title text. I have found that the Workplace Shell has a tendency to override this function.
Example Code:
#define INCL_BASE
#include <os2.h>
#include <conio.h>
APIRET16 APIENTRY16 WinSetTitle (PSZ szTitle);
void main(void) {
WinSetTitle("Test of WinSetTitle");
getch();
}
Linkage definitions
NAME WinSetTitle WINDOWCOMPAT DESCRIPTION "Sample program to illustrate WinSetTitle" PROTMODE EXETYPE OS2 IMPORTS WINSETTITLE = PMSHAPI.93