Rev 6446 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6446 | Rev 7700 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | #define CRT_NEWRESOURCE 0x2000 |
- | |
2 | #define CRT_ERROR 0x7FFF |
- | |
3 | #define CRT_CURSOR 1 |
- | |
4 | #define CRT_BITMAP 2 |
- | |
5 | #define CRT_ICON 3 |
- | |
6 | #define CRT_MENU 4 |
- | |
7 | #define CRT_DIALOG 5 |
- | |
8 | #define CRT_STRING 6 |
- | |
9 | #define CRT_FONTDIR 7 |
- | |
10 | #define CRT_FONT 8 |
- | |
11 | #define CRT_ACCELERATOR 9 |
- | |
12 | #define CRT_RCDATA 10 |
- | |
13 | #define CRT_MESSAGETABLE 11 |
- | |
14 | #define CRT_GROUP_CURSOR 12 |
- | |
15 | #define CRT_GROUP_ICON 14 |
- | |
16 | #define CRT_VERSION 16 |
- | |
17 | #define CRT_DLGINCLUDE 17 |
- | |
18 | #define CRT_PLUGPLAY 19 |
- | |
19 | #define CRT_VXD 20 |
- | |
20 | #define CRT_ANICURSOR 21 |
- | |
21 | #define CRT_ANIICON 22 |
- | |
22 | #define CRT_NEWBITMAP (CRT_BITMAP|CRT_NEWRESOURCE) |
- | |
23 | #define CRT_NEWMENU (CRT_MENU|CRT_NEWRESOURCE) |
- | |
24 | #define CRT_NEWDIALOG (CRT_DIALOG|CRT_NEWRESOURCE) |
- | |
25 | - | ||
26 | #define TOTALTYPERES 22 |
- | |
27 | #define NUMMENUPOPUP 8 |
- | |
28 | - | ||
29 | struct RES{ |
- | |
30 | int type; //⨯ à¥áãàᢠ|
- | |
31 | char *tname; //¨¬ï ⨯ |
- | |
32 | int id; //¥£® id |
- | |
33 | char *name; //¨¬ï à¥áãàá |
- | |
34 | unsigned short lang; //ï§ëª |
- | |
35 | unsigned char *res; //㪠§ ⥫ì â ¡«¨æã à¥áãàá |
- | |
36 | unsigned int size; //à §¬¥à â ¡«¨æë |
- | |
37 | }; |
- | |
38 | - | ||
39 | #define DRESNUM 100 |
- | |
40 | #define SIZERESBUF 2048 |
- | |
41 | - | ||
42 | struct _STRINGS_{ |
- | |
43 | char *id; |
- | |
44 | short val; |
- | |
45 | }; |
- | |
46 | - | ||
47 | _STRINGS_ typemem[7]={ |
- | |
48 | "MOVEABLE", 0x0010, |
- | |
49 | "FIXED", ~0x0010, |
- | |
50 | "PURE", 0x0020, |
- | |
51 | "IMPURE", ~0x0020, |
- | |
52 | "PRELOAD", 0x0040, |
- | |
53 | "LOADONCALL", ~0x0040, |
- | |
54 | "DISCARDABLE",0x1000 |
- | |
55 | }; |
- | |
56 | - | ||
57 | _STRINGS_ typeclass[6]={ |
- | |
58 | "BUTTON", 0x80, |
- | |
59 | "EDIT", 0x81, |
- | |
60 | "STATIC", 0x82, |
- | |
61 | "LISTBOX", 0x83, |
- | |
62 | "SCROLLBAR",0x84, |
- | |
63 | "COMBOBOX", 0x85 |
- | |
64 | }; |
- | |
65 | - | ||
66 | _STRINGS_ typemenu[NUMMENUPOPUP]={ |
- | |
67 | "GREYED", 0x0001, |
- | |
68 | "INACTIVE", 0x0002, |
- | |
69 | "BITMAP", 0x0004, |
- | |
70 | "OWNERDRAW", 0x0100, |
- | |
71 | "CHECKED", 0x0008, |
- | |
72 | "MENUBARBREAK",0x0020, |
- | |
73 | "MENUBREAK", 0x0040, |
- | |
74 | "HELP", 0x4000 |
- | |
75 | }; |
- | |
76 | - | ||
77 | _STRINGS_ typeacceler[5]={ |
- | |
78 | "VIRTKEY", 0x01, |
- | |
79 | "NOINVERT", 0x02, |
- | |
80 | "SHIFT", 0x04, |
- | |
81 | "CONTROL", 0x08, |
- | |
82 | "ALT", 0x10 |
- | |
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 | "FILEVERSION",v_fv, |
- | |
89 | "PRODUCTVERSION",v_pv, |
- | |
90 | "FILEFLAGSMASK",v_ffm, |
- | |
91 | "FILEFLAGS",v_ff, |
- | |
92 | "FILEOS",v_fo, |
- | |
93 | "FILETYPE",v_ft, |
- | |
94 | "FILESUBTYPE",v_fs |
- | |
95 | }; |
- | |
96 | - | ||
97 | enum{ |
- | |
98 | rc_accelerators,rc_auto3state, rc_autocheckbox,rc_autoradiobutton,rc_bitmap, |
- | |
99 | rc_caption, rc_characteristics,rc_checkbox, rc_class, rc_combobox, |
- | |
100 | rc_control, rc_ctext, rc_cursor, rc_defpushbutton, rc_dialog, |
- | |
101 | rc_dialogex, rc_edittext, rc_exstyle, rc_font, rc_groupbox, |
- | |
102 | rc_icon, rc_listbox, rc_ltext, rc_menu, rc_menuex, |
1 | #define CRT_NEWRESOURCE 0x2000 #define CRT_ERROR 0x7FFF #define CRT_CURSOR 1 #define CRT_BITMAP 2 #define CRT_ICON 3 #define CRT_MENU 4 #define CRT_DIALOG 5 #define CRT_STRING 6 #define CRT_FONTDIR 7 #define CRT_FONT 8 #define CRT_ACCELERATOR 9 #define CRT_RCDATA 10 #define CRT_MESSAGETABLE 11 #define CRT_GROUP_CURSOR 12 #define CRT_GROUP_ICON 14 #define CRT_VERSION 16 #define CRT_DLGINCLUDE 17 #define CRT_PLUGPLAY 19 #define CRT_VXD 20 #define CRT_ANICURSOR 21 #define CRT_ANIICON 22 #define CRT_NEWBITMAP (CRT_BITMAP|CRT_NEWRESOURCE) #define CRT_NEWMENU (CRT_MENU|CRT_NEWRESOURCE) #define CRT_NEWDIALOG (CRT_DIALOG|CRT_NEWRESOURCE) #define TOTALTYPERES 22 #define NUMMENUPOPUP 8 struct RES{ int type; //⨯ à¥áãàᢠchar *tname; //¨¬ï ⨯ int id; //¥£® id char *name; //¨¬ï à¥áãàá unsigned short lang; //ï§ëª unsigned char *res; //㪠§ ⥫ì â ¡«¨æã à¥áãàá unsigned int size; //à §¬¥à â ¡«¨æë }; #define DRESNUM 100 #define SIZERESBUF 2048 struct _STRINGS_{ char *id; short val; }; _STRINGS_ typemem[7]={ "MOVEABLE", 0x0010, "FIXED", ~0x0010, "PURE", 0x0020, "IMPURE", ~0x0020, "PRELOAD", 0x0040, "LOADONCALL", ~0x0040, "DISCARDABLE",0x1000 }; _STRINGS_ typeclass[6]={ "BUTTON", 0x80, "EDIT", 0x81, "STATIC", 0x82, "LISTBOX", 0x83, "SCROLLBAR",0x84, "COMBOBOX", 0x85 }; _STRINGS_ typemenu[NUMMENUPOPUP]={ "GREYED", 0x0001, "INACTIVE", 0x0002, "BITMAP", 0x0004, "OWNERDRAW", 0x0100, "CHECKED", 0x0008, "MENUBARBREAK",0x0020, "MENUBREAK", 0x0040, "HELP", 0x4000 }; _STRINGS_ typeacceler[5]={ "VIRTKEY", 0x01, "NOINVERT", 0x02, "SHIFT", 0x04, "CONTROL", 0x08, "ALT", 0x10 }; enum {v_fv=1,v_pv,v_ffm,v_ff,v_fo,v_ft,v_fs}; _STRINGS_ typeversion[7]={ (char *)"FILEVERSION",v_fv, (char *)"PRODUCTVERSION",v_pv, (char *)"FILEFLAGSMASK",v_ffm, (char *)"FILEFLAGS",v_ff, (char *)"FILEOS",v_fo, (char *)"FILETYPE",v_ft, (char *)"FILESUBTYPE",v_fs }; enum{ rc_accelerators,rc_auto3state, rc_autocheckbox,rc_autoradiobutton,rc_bitmap, rc_caption, rc_characteristics,rc_checkbox, rc_class, rc_combobox, rc_control, rc_ctext, rc_cursor, rc_defpushbutton, rc_dialog, rc_dialogex, rc_edittext, rc_exstyle, rc_font, rc_groupbox, rc_icon, rc_listbox, rc_ltext, rc_menu, rc_menuex, rc_menuitem, rc_messagetable, rc_popup, rc_pushbox, rc_pushbutton, rc_radiobutton, rc_rcdata, rc_rtext, rc_scrollbar, rc_state3, rc_stringtable, rc_style, rc_version, rc_versioninfo, rc_begin, rc_end, rc_language }; struct{ unsigned short dclass; unsigned long style; }defdialog[rc_state3+1]={ 0,0, 0x80,6,//BS_AUTO3STATE 0X80,3|0x00010000,//BS_AUTOCHECKBOX|WS_TABSTOP, 0X80,9,//BS_AUTORADIOBUTTON, 0,0, 0,0, 0,0, 0X80,0x00010002,//BS_CHECKBOX|WS_TABSTOP, 0,0, 0X85,0x00010000,//0,WS_TABSTOP 0,0x40000000|0x10000000,//WS_CHILD|WS_VISIBLE, 0X82,1,//ES_CENTER, 0,0, 0X80,1|0x00010000,//BS_DEFPUSHBUTTON|WS_TABSTOP, 0,0, 0,0, 0X81,0x00800000|0x00010000,//ES_LEFT|WS_BORDER|WS_TABSTOP, 0,0, 0,0, 0X80,7|0x00010000,//BS_GROUPBOX, 0X82,3,//SS_ICON, 0X83,0x00800000|1,//WS_BORDER|LBS_NOTIFY, 0X82,0x00020000,//ES_LEFT|WS_GROUP, 0,0, 0,0, 0,0, 0,0, 0,0, 0X80,0x00010000,// ??? BS_PUSHBOX, 0X80,0x00010000,//BS_PUSHBUTTON|WS_TABSTOP, 0X80,4,//BS_RADIOBUTTON, 0,0, 0X82,2|0x00020000,//ES_RIGHT|WS_GROUP, 0X84,0, 0X80,5//BS_3STATE }; union NameOrdinal { unsigned char *name; unsigned short ordinal[2]; }; struct _DBH_ //áâàãªâãà ¤¨ «®£ { unsigned long lStyle; unsigned long lExtendedStyle; unsigned short NumberOfItems; unsigned short x; unsigned short y; unsigned short cx; unsigned short cy; NameOrdinal MenuName; NameOrdinal ClassName; char *Caption; unsigned short FontSize; char *FontName; }; struct _CD_ //ª®â஫ìë¥ ¤ ë¥ ¤¨ «®£ { unsigned long lStyle; unsigned long lExtendedStyle; unsigned short x; unsigned short y; unsigned short cx; unsigned short cy; unsigned short Id; NameOrdinal ClassId; NameOrdinal Text; unsigned short Extra; }; struct _ICOHEAD_ { unsigned short res1; unsigned short type; unsigned short count; // unsigned short res2; }; struct _RESDIR_ { unsigned char width; unsigned char heigth; unsigned char color; unsigned char res1; unsigned short planes; unsigned short bitcount; unsigned long binres; unsigned short nameord; // unsigned short res2; }; struct _CURDIR_ { unsigned short width; unsigned short heigth; unsigned short planes; unsigned short bitcount; unsigned long binres; unsigned short nameord; // unsigned short res2; }; |
103 | rc_menuitem, rc_messagetable, rc_popup, rc_pushbox, rc_pushbutton, |
- | |
104 | rc_radiobutton, rc_rcdata, rc_rtext, rc_scrollbar, rc_state3, |
- | |
105 | rc_stringtable, rc_style, rc_version, rc_versioninfo, rc_begin, |
- | |
106 | rc_end, rc_language |
- | |
107 | }; |
- | |
108 | - | ||
109 | struct{ |
- | |
110 | unsigned short dclass; |
- | |
111 | unsigned long style; |
- | |
112 | }defdialog[rc_state3+1]={ |
- | |
113 | 0,0, |
- | |
114 | 0x80,6,//BS_AUTO3STATE |
- | |
115 | 0X80,3|0x00010000,//BS_AUTOCHECKBOX|WS_TABSTOP, |
- | |
116 | 0X80,9,//BS_AUTORADIOBUTTON, |
- | |
117 | 0,0, |
- | |
118 | 0,0, |
- | |
119 | 0,0, |
- | |
120 | 0X80,0x00010002,//BS_CHECKBOX|WS_TABSTOP, |
- | |
121 | 0,0, |
- | |
122 | 0X85,0x00010000,//0,WS_TABSTOP |
- | |
123 | 0,0x40000000|0x10000000,//WS_CHILD|WS_VISIBLE, |
- | |
124 | 0X82,1,//ES_CENTER, |
- | |
125 | 0,0, |
- | |
126 | 0X80,1|0x00010000,//BS_DEFPUSHBUTTON|WS_TABSTOP, |
- | |
127 | 0,0, |
- | |
128 | 0,0, |
- | |
129 | 0X81,0x00800000|0x00010000,//ES_LEFT|WS_BORDER|WS_TABSTOP, |
- | |
130 | 0,0, |
- | |
131 | 0,0, |
- | |
132 | 0X80,7|0x00010000,//BS_GROUPBOX, |
- | |
133 | 0X82,3,//SS_ICON, |
- | |
134 | 0X83,0x00800000|1,//WS_BORDER|LBS_NOTIFY, |
- | |
135 | 0X82,0x00020000,//ES_LEFT|WS_GROUP, |
- | |
136 | 0,0, |
- | |
137 | 0,0, |
- | |
138 | 0,0, |
- | |
139 | 0,0, |
- | |
140 | 0,0, |
- | |
141 | 0X80,0x00010000,// ??? BS_PUSHBOX, |
- | |
142 | 0X80,0x00010000,//BS_PUSHBUTTON|WS_TABSTOP, |
- | |
143 | 0X80,4,//BS_RADIOBUTTON, |
- | |
144 | 0,0, |
- | |
145 | 0X82,2|0x00020000,//ES_RIGHT|WS_GROUP, |
- | |
146 | 0X84,0, |
- | |
147 | 0X80,5//BS_3STATE |
- | |
148 | }; |
- | |
149 | - | ||
150 | - | ||
151 | union NameOrdinal |
- | |
152 | { |
- | |
153 | unsigned char *name; |
- | |
154 | unsigned short ordinal[2]; |
- | |
155 | }; |
- | |
156 | - | ||
157 | - | ||
158 | struct _DBH_ //áâàãªâãà ¤¨ «®£ |
- | |
159 | { |
- | |
160 | unsigned long lStyle; |
- | |
161 | unsigned long lExtendedStyle; |
- | |
162 | unsigned short NumberOfItems; |
- | |
163 | unsigned short x; |
- | |
164 | unsigned short y; |
- | |
165 | unsigned short cx; |
- | |
166 | unsigned short cy; |
- | |
167 | NameOrdinal MenuName; |
- | |
168 | NameOrdinal ClassName; |
- | |
169 | char *Caption; |
- | |
170 | unsigned short FontSize; |
- | |
171 | char *FontName; |
- | |
172 | }; |
- | |
173 | - | ||
174 | struct _CD_ //ª®â஫ìë¥ ¤ ë¥ ¤¨ «®£ |
- | |
175 | { |
- | |
176 | unsigned long lStyle; |
- | |
177 | unsigned long lExtendedStyle; |
- | |
178 | unsigned short x; |
- | |
179 | unsigned short y; |
- | |
180 | unsigned short cx; |
- | |
181 | unsigned short cy; |
- | |
182 | unsigned short Id; |
- | |
183 | NameOrdinal ClassId; |
- | |
184 | NameOrdinal Text; |
- | |
185 | unsigned short Extra; |
- | |
186 | }; |
- | |
187 | - | ||
188 | struct _ICOHEAD_ |
- | |
189 | { |
- | |
190 | unsigned short res1; |
- | |
191 | unsigned short type; |
- | |
192 | unsigned short count; |
- | |
193 | // unsigned short res2; |
- | |
194 | }; |
- | |
195 | - | ||
196 | struct _RESDIR_ |
- | |
197 | { |
- | |
198 | unsigned char width; |
- | |
199 | unsigned char heigth; |
- | |
200 | unsigned char color; |
- | |
201 | unsigned char res1; |
- | |
202 | unsigned short planes; |
- | |
203 | unsigned short bitcount; |
- | |
204 | unsigned long binres; |
- | |
205 | unsigned short nameord; |
- | |
206 | // unsigned short res2; |
- | |
207 | }; |
- | |
208 | - | ||
209 | struct _CURDIR_ |
- | |
210 | { |
- | |
211 | unsigned short width; |
- | |
212 | unsigned short heigth; |
- | |
213 | unsigned short planes; |
- | |
214 | unsigned short bitcount; |
- | |
215 | unsigned long binres; |
- | |
216 | unsigned short nameord; |
- | |
217 | // unsigned short res2; |
- | |
218 | }; |
- | |
219 | 2 |