WinSetTitleAndIcon.c - Example code: Difference between revisions
Appearance
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 ..." |
No edit summary |
||
Line 1: | Line 1: | ||
< | <code> | ||
#define INCL_BASE | |||
#include <os2.h> | |||
#define INCL_BASE | |||
#include <os2.h> | #include <conio.h> | ||
#include <stdlib.h> | |||
#include <conio.h> | |||
#include <stdlib.h> | APIRET16 APIENTRY16 WinSetTitleAndIcon ( PSZ szTitle, PSZ szIconPath ) ; | ||
APIRET16 APIENTRY16 WinSetTitleAndIcon ( PSZ szTitle, PSZ szIconPath ) ; | void main ( void ) { | ||
void main ( void ) { | |||
char IconPath [ _MAX_PATH ] ; | char IconPath [ _MAX_PATH ] ; | ||
_fullpath ( IconPath, "WinSetTitleAndIcon.ico", sizeof(IconPath) ) ; | _fullpath ( IconPath, "WinSetTitleAndIcon.ico", sizeof(IconPath) ) ; | ||
WinSetTitleAndIcon ( "Test of WinSetTitleAndIcon", IconPath ) ; | WinSetTitleAndIcon ( "Test of WinSetTitleAndIcon", IconPath ) ; | ||
getch ( ) ; | getch ( ) ; | ||
} | } | ||
</code> | |||
</ | |||
[[Category:The OS/2 API Project]] | [[Category:The OS/2 API Project]] |
Latest revision as of 10:52, 12 April 2016
#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 ( ) ;
}