|
|
Microsoft OS/2 SDK PM 08-08-1988
/**********************************************************************\ * Color definitions for background fill \**********************************************************************/ #define LT_BLUE 0x0000007FL #define WHITE 0x00FFFFFFL /**********************************************************************\ * Count of msec for async message box and window flash rate \**********************************************************************/ #define CMSECFLASH 1000 #define CMSECASYNC 10000 /**********************************************************************\ * Size of maximum string size allocated \**********************************************************************/ #define CCHMAXSTRING 50 /**********************************************************************\ * Resource Ids \**********************************************************************/ #define ID_TEMPLATE 1 #define IDD_ABOUT 2 #define IDD_TEMPLATE 3 /**********************************************************************\ * IDD - ID for Dialog item * IDM - ID for Menu commands * IDS - ID for String table * IDT - ID for Timers \**********************************************************************/ #define IDNULL -1 #define IDDDEFAULTS 101 #define IDDTEXT 102 #define IDDCHECKBOX 103 #define IDDRBLEFT 104 #define IDDRBRIGHT 105 #define IDDRBCENTER 106 #define IDDLISTBOX 107 #define IDDSBH 108 #define IDDSBV 109 #define IDMOPTIONS 10 #define IDMFLASH 11 #define IDMABOUT 12 #define IDMCOMMANDS 20 #define IDMCOLOR 21 #define IDMBLACK 22 #define IDMDIALOG 23 #define IDMSTART 24 #define IDMEND 25 #define IDSCONTENT 10 #define IDSCLOSE 11 #define IDSOKCLOSE 12 #define IDSSAVE 13 #define IDSOKSAVE 14 #define IDSASYNC 15 #define IDSOKASYNC 16 #define IDSABOUT 18 #define IDSTITLE 19 #define IDSDEFAULT 20 #define IDSSTR1 21 /* These */ #define IDSSTR2 22 /* seven */ #define IDSSTR3 23 /* string */ #define IDSSTR4 24 /* ids */ #define IDSSTR5 25 /* must */ #define IDSSTR6 26 /* be */ #define IDSSTR7 27 /* consecutive */ #define IDTASYNC 18 #define IDTFLASH 19 /********************\ * The main procedure * \********************/ SHORT cdecl main(void); /********************************************************************\ * These procedures must be declared FAR because they are exported * and called by OS/2 Windows Presentation Manager. \********************************************************************/ MRESULT EXPENTRY TemplateAboutDlg( HWND, USHORT, MPARAM, MPARAM ); MRESULT EXPENTRY TemplateDlg ( HWND, USHORT, MPARAM, MPARAM ); MRESULT EXPENTRY TemplateWndProc ( HWND, USHORT, MPARAM, MPARAM ); BOOL FAR TemplateInitApp ( VOID ); /********************************************************************\ * These procedures are declared here to get type and parameter * checking for calls between modules. The compiler switches -AS and * -AM for SMALL and MIDDLE model will make them NEAR and FAR * respectively, so there is no explicit declaration as NEAR or FAR. \********************************************************************/ VOID ShowAsyncMessage ( HWND ); VOID TemplateCharInput ( HWND, SHORT, SHORT, SHORT ); VOID TemplateCommand ( HWND, SHORT, SHORT, BOOL ); VOID TemplateCreate ( HWND, LONG ); VOID TemplateEndSession( HWND, BOOL ); VOID TemplateSetFocus ( HWND ); VOID TemplateHorzScroll( HWND, SHORT, SHORT ); VOID TemplatePaint ( HWND, HPS ); VOID TemplateQueryQuit ( HWND ); VOID TemplateTimer ( HWND, USHORT ); VOID TemplateVertScroll( HWND, SHORT, USHORT );
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.