|
|
1.1 root 1: /*
2: FatPel Application Resource Ids
3: Created by Microsoft, IBM Corporation, 1990
4: */
5:
6: /* resources loaded via WinCreateStdWindow */
7: #define IDW_FATPEL 0x101
8:
9:
10: /* pointers */
11: #define IDR_DRAGSIZEPTR 0x02
12: #define IDR_DRAGCOLORPTR 0x03
13:
14:
15: /* dialog boxes */
16: #define IDD_ABOUTDLG 0x04
17: #define IDD_COLORSDLG 0x05
18: #define IDD_PELSIZEDLG 0x06
19:
20:
21:
22:
23: /**********************************************************************\
24: * IDC_ - ID for Dialog control
25: * IDD_ - ID for Dialog
26: * IDM_ - ID for Menu commands
27: * IDS - ID for String table
28: * IDT - ID for Timers
29: \**********************************************************************/
30:
31: /* common dialog box control values */
32:
33: #define IDNULL -1
34:
35:
36: /* about ... */
37:
38: #define IDD_VERSION 0x00
39:
40:
41: /* set colors ... */
42:
43: #define IDC_MATHOBJ 0x01
44: #define IDC_RENDEREDOBJ 0x02
45: #define IDC_FIELD 0x03
46: #define IDC_CROSSHAIRS 0x04
47: #define IDC_INTERSTICE 0x05
48: #define IDC_CTLPOINTS 0x06
49: #define IDC_RGB 0x07
50:
51:
52: /* set pel size ... */
53:
54: #define IDC_PELWIDTH 0x10
55: #define IDC_PELHEIGHT 0x11
56: #define IDC_SQUARE 0x12
57: #define IDC_DIAMOND 0x13
58: #define IDC_CIRCLE 0x14
59:
60:
61:
62:
63: /* menus */
64:
65: #define IDM_FILE 0x000
66: #define IDM_SAVE 0x001
67: #define IDM_ABOUT 0x002
68:
69: #define IDM_DISPLAY 0x100
70: #define IDM_RENDEREDOBJ 0x101
71: #define IDM_MATHOBJ 0x102
72: #define IDM_CTLPOINTS 0x103
73: #define IDM_CROSSHAIRS 0x104
74: #define IDM_PELBORDER 0x105
75: #define IDM_ROUNDPOINTS 0x106
76: #define IDM_AUTOREDRAW 0x107
77:
78: #define IDM_PRIM 0x200
79: #define IDM_NOPRIM 0x201
80: #define IDM_POLYLINE 0x202
81: #define IDM_POLYFILLET 0x203
82: #define IDM_POLYSPLINE 0x204
83: #define IDM_POINTARC 0x205
84:
85: #define IDM_COLORS 0x300
86: #define IDM_SETCOLORS 0x301
87: #define IDM_EDITPELCOLORS 0x302
88:
89: #define IDM_POINTS 0x400
90: #define IDM_CLEARALL 0x401
91:
92: #define IDM_PELSIZE 0x500
93: #define IDM_SETPELSIZE 0x501
94: #define IDM_DRAGPELSIZE 0x502
95:
96: #define IDM_REDRAW 0x600
97:
98:
99:
100:
101: /* strings */
102:
103: #define IDS_TITLE 1
104:
105:
106:
107:
108: /************************************************************************
109: *
110: * Constants
111: *
112: * Miscellaneous constants.
113: *
114: ************************************************************************/
115:
116: #define MAJOR_VERSION 0
117: #define MINOR_VERSION 11
118:
119: #define CPTLMAX 50
120: #define CCHSTR 15
121:
122: #define NO_POINT -1
123:
124: /* flags for Paint() options */
125: #define IGNORED 0x00 /* no bits set ==> ignored */
126: #define OVERRIDE_RENDERED_OBJ 0x01
127: #define CLEAR_BACKGROUND 0x02
128: #define CLEAR_FAT_BITMAP 0x04
129: #define RENDER_MATH_OBJ 0x08
130:
131:
132:
133:
134: /************************************************************************
135: *
136: * Handy macros to eliminate some typing.
137: *
138: ************************************************************************/
139:
140: #define TOGGLE_BOOL(x) ((x)=(!(x)))
141:
142: #ifdef INCL_WINDIALOGS
143:
144: #define SET_CHECK_BOX(x, y, z) \
145: WinSendDlgItemMsg((x),(y),BM_SETCHECK, \
146: MPFROM2SHORT((z),0),0L)
147:
148: #define TOGGLE_MENU_ITEM(x, y, z) \
149: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \
150: MPFROM2SHORT((y),TRUE), \
151: MPFROM2SHORT(MIA_CHECKED,(z)?MIA_CHECKED:NULL))
152:
153: #define CHECK_MENU_ITEM(x, y) \
154: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \
155: MPFROM2SHORT((y),TRUE), \
156: MPFROM2SHORT(MIA_CHECKED,MIA_CHECKED))
157:
158: #define UNCHECK_MENU_ITEM(x, y) \
159: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \
160: MPFROM2SHORT((y),TRUE), \
161: MPFROM2SHORT(MIA_CHECKED,NULL))
162:
163: #define ENABLE_MENU_ITEM(x, y) \
164: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \
165: MPFROM2SHORT((y),TRUE), \
166: MPFROM2SHORT(MIA_DISABLED,NULL))
167:
168: #define DISABLE_MENU_ITEM(x, y) \
169: WinSendDlgItemMsg((x), FID_MENU, MM_SETITEMATTR, \
170: MPFROM2SHORT((y),TRUE), \
171: MPFROM2SHORT(MIA_DISABLED,MIA_DISABLED))
172:
173: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.