Jump to content

WinSetTitleAndIcon.c - Example code

From EDM2
Revision as of 05:22, 8 April 2015 by Martini (talk | contribs) (Created page with "<PRE> #define INCL_BASE #include <os2.h> #include <conio.h> #include <stdlib.h> APIRET16 APIENTRY16 WinSetTitleAndIcon ( PSZ szTitle, PSZ szIconPath ) ; void main ( void ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


#define INCL_BASE
#include <os2.h>

#include <conio.h>
#include <stdlib.h>

APIRET16 APIENTRY16 WinSetTitleAndIcon ( PSZ szTitle, PSZ szIconPath ) ;

void main ( void ) {

   char IconPath [ _MAX_PATH ] ;
   _fullpath ( IconPath, "WinSetTitleAndIcon.ico", sizeof(IconPath) ) ;

   WinSetTitleAndIcon ( "Test of WinSetTitleAndIcon", IconPath ) ;

   getch ( ) ;
}