|
|
1.1 root 1: /**********************************************************************\
2: * Color definitions for background fill
3: \**********************************************************************/
4:
5: #define LT_BLUE 0x0000007FL
6: #define WHITE 0x00FFFFFFL
7:
8:
9: /**********************************************************************\
10: * Count of msec for async message box and window flash rate
11: \**********************************************************************/
12:
13: #define CMSECFLASH 1000
14: #define CMSECASYNC 10000
15:
16:
17: /**********************************************************************\
18: * Size of maximum string size allocated
19: \**********************************************************************/
20:
21: #define CCHMAXSTRING 50
22:
23:
24: /**********************************************************************\
25: * Resource Ids
26: \**********************************************************************/
27:
28: #define ID_TEMPLATE 1
29: #define IDD_ABOUT 2
30: #define IDD_TEMPLATE 3
31:
32:
33: /**********************************************************************\
34: * IDD - ID for Dialog item
35: * IDM - ID for Menu commands
36: * IDS - ID for String table
37: * IDT - ID for Timers
38: \**********************************************************************/
39:
40: #define IDNULL -1
41: #define IDDDEFAULTS 101
42: #define IDDTEXT 102
43: #define IDDCHECKBOX 103
44: #define IDDRBLEFT 104
45: #define IDDRBRIGHT 105
46: #define IDDRBCENTER 106
47: #define IDDLISTBOX 107
48: #define IDDSBH 108
49: #define IDDSBV 109
50:
51: #define IDMOPTIONS 10
52: #define IDMFLASH 11
53: #define IDMABOUT 12
54: #define IDMCOMMANDS 20
55: #define IDMCOLOR 21
56: #define IDMBLACK 22
57: #define IDMDIALOG 23
58: #define IDMSTART 24
59: #define IDMEND 25
60:
61: #define IDSCONTENT 10
62: #define IDSCLOSE 11
63: #define IDSOKCLOSE 12
64: #define IDSSAVE 13
65: #define IDSOKSAVE 14
66: #define IDSASYNC 15
67: #define IDSOKASYNC 16
68: #define IDSABOUT 18
69: #define IDSTITLE 19
70: #define IDSDEFAULT 20
71: #define IDSSTR1 21 /* These */
72: #define IDSSTR2 22 /* seven */
73: #define IDSSTR3 23 /* string */
74: #define IDSSTR4 24 /* ids */
75: #define IDSSTR5 25 /* must */
76: #define IDSSTR6 26 /* be */
77: #define IDSSTR7 27 /* consecutive */
78:
79: #define IDTASYNC 18
80: #define IDTFLASH 19
81:
82: /********************\
83: * The main procedure *
84: \********************/
85:
86: SHORT cdecl main(void);
87:
88: /********************************************************************\
89: * These procedures must be declared FAR because they are exported
90: * and called by OS/2 Windows Presentation Manager.
91: \********************************************************************/
92:
93: MRESULT EXPENTRY TemplateAboutDlg( HWND, USHORT, MPARAM, MPARAM );
94: MRESULT EXPENTRY TemplateDlg ( HWND, USHORT, MPARAM, MPARAM );
95: MRESULT EXPENTRY TemplateWndProc ( HWND, USHORT, MPARAM, MPARAM );
96: BOOL FAR TemplateInitApp ( VOID );
97:
98:
99: /********************************************************************\
100: * These procedures are declared here to get type and parameter
101: * checking for calls between modules. The compiler switches -AS and
102: * -AM for SMALL and MIDDLE model will make them NEAR and FAR
103: * respectively, so there is no explicit declaration as NEAR or FAR.
104: \********************************************************************/
105:
106: VOID ShowAsyncMessage ( HWND );
107: VOID TemplateCharInput ( HWND, SHORT, SHORT, SHORT );
108: VOID TemplateCommand ( HWND, SHORT, SHORT, BOOL );
109: VOID TemplateCreate ( HWND, LONG );
110: VOID TemplateEndSession( HWND, BOOL );
111: VOID TemplateSetFocus ( HWND );
112: VOID TemplateHorzScroll( HWND, SHORT, SHORT );
113: VOID TemplatePaint ( HWND, HPS );
114: VOID TemplateQueryQuit ( HWND );
115: VOID TemplateTimer ( HWND, USHORT );
116: VOID TemplateVertScroll( HWND, SHORT, USHORT );
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.