Jump to content

WinSetTitleAndIcon.c - Example code: Difference between revisions

From EDM2
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 ..."
 
Ak120 (talk | contribs)
No edit summary
 
Line 1: Line 1:
<PRE>
<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>
 
</PRE>


[[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 ( ) ;
}