Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6446 | GerdtR | 1 | #define CRT_NEWRESOURCE 0x2000 |
2 | |||
3 | #define CRT_CURSOR 1 |
||
4 | |||
5 | #define CRT_ICON 3 |
||
6 | |||
7 | #define CRT_DIALOG 5 |
||
8 | |||
9 | #define CRT_FONTDIR 7 |
||
10 | |||
11 | #define CRT_ACCELERATOR 9 |
||
12 | |||
13 | #define CRT_MESSAGETABLE 11 |
||
14 | |||
15 | #define CRT_GROUP_ICON 14 |
||
16 | |||
17 | #define CRT_DLGINCLUDE 17 |
||
18 | |||
19 | #define CRT_VXD 20 |
||
20 | |||
21 | #define CRT_ANIICON 22 |
||
22 | |||
23 | #define CRT_NEWMENU (CRT_MENU|CRT_NEWRESOURCE) |
||
24 | |||
25 | |||
26 | |||
27 | #define NUMMENUPOPUP 8 |
||
28 | |||
29 | struct RES{ |
||
30 | |||
31 | char *tname; //имя типа |
||
32 | |||
33 | char *name; //имя ресурса |
||
34 | |||
35 | unsigned char *res; //указатель на таблицу ресурса |
||
36 | |||
37 | }; |
||
38 | |||
39 | #define DRESNUM 100 |
||
40 | |||
41 | |||
42 | |||
43 | char *id; |
||
44 | |||
45 | }; |
||
46 | |||
47 | _STRINGS_ typemem[7]={ |
||
48 | |||
49 | |||
50 | |||
51 | "IMPURE", ~0x0020, |
||
52 | |||
53 | "LOADONCALL", ~0x0040, |
||
54 | |||
55 | |||
56 | |||
57 | _STRINGS_ typeclass[6]={ |
||
58 | |||
59 | "EDIT", 0x81, |
||
60 | |||
61 | "LISTBOX", 0x83, |
||
62 | |||
63 | "COMBOBOX", 0x85 |
||
64 | |||
65 | |||
66 | |||
67 | "GREYED", 0x0001, |
||
68 | |||
69 | "BITMAP", 0x0004, |
||
70 | |||
71 | "CHECKED", 0x0008, |
||
72 | |||
73 | "MENUBREAK", 0x0040, |
||
74 | |||
75 | |||
76 | |||
77 | _STRINGS_ typeacceler[5]={ |
||
78 | |||
79 | "NOINVERT", 0x02, |
||
80 | |||
81 | |||
82 | |||
83 | }; |
||
84 | |||
85 | enum {v_fv=1,v_pv,v_ffm,v_ff,v_fo,v_ft,v_fs}; |
||
86 | |||
87 | _STRINGS_ typeversion[7]={ |
||
88 | |||
89 | "PRODUCTVERSION",v_pv, |
||
90 | |||
91 | |||
92 | |||
93 | "FILETYPE",v_ft, |
||
94 | |||
95 | }; |
||
96 | |||
97 | enum{ |
||
98 | |||
99 | rc_caption, rc_characteristics,rc_checkbox, rc_class, rc_combobox, |
||
100 | |||
101 | rc_dialogex, rc_edittext, rc_exstyle, rc_font, rc_groupbox, |
||
102 | |||
103 | rc_menuitem, rc_messagetable, rc_popup, rc_pushbox, rc_pushbutton, |
||
104 | |||
105 | rc_stringtable, rc_style, rc_version, rc_versioninfo, rc_begin, |
||
106 | |||
107 | }; |
||
108 | |||
109 | struct{ |
||
110 | |||
111 | |||
112 | |||
113 | 0,0, |
||
114 | |||
115 | 0X80,3|0x00010000,//BS_AUTOCHECKBOX|WS_TABSTOP, |
||
116 | |||
117 | 0,0, |
||
118 | |||
119 | 0,0, |
||
120 | |||
121 | 0,0, |
||
122 | |||
123 | 0,0x40000000|0x10000000,//WS_CHILD|WS_VISIBLE, |
||
124 | |||
125 | 0,0, |
||
126 | |||
127 | 0,0, |
||
128 | |||
129 | |||
130 | |||
131 | 0,0, |
||
132 | |||
133 | 0X82,3,//SS_ICON, |
||
134 | |||
135 | 0X82,0x00020000,//ES_LEFT|WS_GROUP, |
||
136 | |||
137 | 0,0, |
||
138 | |||
139 | 0,0, |
||
140 | |||
141 | 0X80,0x00010000,// ??? BS_PUSHBOX, |
||
142 | |||
143 | 0X80,4,//BS_RADIOBUTTON, |
||
144 | |||
145 | 0X82,2|0x00020000,//ES_RIGHT|WS_GROUP, |
||
146 | |||
147 | 0X80,5//BS_3STATE |
||
148 | |||
149 | |||
150 | |||
151 | |||
152 | |||
153 | unsigned char *name; |
||
154 | |||
155 | }; |
||
156 | |||
157 | |||
158 | |||
159 | { |
||
160 | |||
161 | unsigned long lExtendedStyle; |
||
162 | |||
163 | unsigned short x; |
||
164 | |||
165 | unsigned short cx; |
||
166 | |||
167 | |||
168 | |||
169 | char *Caption; |
||
170 | |||
171 | |||
172 | |||
173 | |||
174 | |||
175 | { |
||
176 | |||
177 | unsigned long lExtendedStyle; |
||
178 | |||
179 | unsigned short y; |
||
180 | |||
181 | unsigned short cy; |
||
182 | |||
183 | NameOrdinal ClassId; |
||
184 | |||
185 | unsigned short Extra; |
||
186 | |||
187 | |||
188 | |||
189 | { |
||
190 | |||
191 | |||
192 | |||
193 | // unsigned short res2; |
||
194 | |||
195 | |||
196 | |||
197 | { |
||
198 | |||
199 | unsigned char heigth; |
||
200 | |||
201 | unsigned char res1; |
||
202 | |||
203 | unsigned short bitcount; |
||
204 | |||
205 | unsigned short nameord; |
||
206 | |||
207 | }; |
||
208 | |||
209 | struct _CURDIR_ |
||
210 | |||
211 | unsigned short width; |
||
212 | |||
213 | unsigned short planes; |
||
214 | |||
215 | |||
216 | |||
217 | // unsigned short res2; |
||
218 | |||
219 |