mshtml: Properly handle fragment-only navigation.
[wine] / include / tmschema.h
1 /*
2  * Copyright (C) 2003 Kevin Koltzau
3  * Copyright (C) 2004 Francois Gouget
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19
20 #ifndef __WINE_TMSCHEMA_H
21 #define __WINE_TMSCHEMA_H
22
23 #include <schemadef.h>
24
25 BEGIN_TM_SCHEMA(ThemeMgrSchema)
26
27
28 /***** ENUMERATIONS *****/
29
30 /* BGTYPE Enum */
31 BEGIN_TM_ENUM(BGTYPE)
32     TM_ENUM(0, BT, IMAGEFILE)
33     TM_ENUM(1, BT, BORDERFILL)
34     TM_ENUM(2, BT, NONE)
35 END_TM_ENUM()
36
37 /* IMAGELAYOUT Enum */
38 BEGIN_TM_ENUM(IMAGELAYOUT)
39     TM_ENUM(0, IL, VERTICAL)
40     TM_ENUM(1, IL, HORIZONTAL)
41 END_TM_ENUM()
42
43 /* BORDERTYPE Enum */
44 BEGIN_TM_ENUM(BORDERTYPE)
45     TM_ENUM(0, BT, RECT)
46     TM_ENUM(1, BT, ROUNDRECT)
47     TM_ENUM(2, BT, ELLIPSE)
48 END_TM_ENUM()
49
50 /* FILLTYPE Enum */
51 BEGIN_TM_ENUM(FILLTYPE)
52     TM_ENUM(0, FT, SOLID)
53     TM_ENUM(1, FT, VERTGRADIENT)
54     TM_ENUM(2, FT, HORZGRADIENT)
55     TM_ENUM(3, FT, RADIALGRADIENT)
56     TM_ENUM(4, FT, TILEIMAGE)
57 END_TM_ENUM()
58
59 /* SIZINGTYPE Enum */
60 BEGIN_TM_ENUM(SIZINGTYPE)
61     TM_ENUM(0, ST, TRUESIZE)
62     TM_ENUM(1, ST, STRETCH)
63     TM_ENUM(2, ST, TILE)
64 END_TM_ENUM()
65
66 /* HALIGN Enum */
67 BEGIN_TM_ENUM(HALIGN)
68     TM_ENUM(0, HA, LEFT)
69     TM_ENUM(1, HA, CENTER)
70     TM_ENUM(2, HA, RIGHT)
71 END_TM_ENUM()
72
73 /* CONTENTALIGNMENT Enum */
74 BEGIN_TM_ENUM(CONTENTALIGNMENT)
75     TM_ENUM(0, CA, LEFT)
76     TM_ENUM(1, CA, CENTER)
77     TM_ENUM(2, CA, RIGHT)
78 END_TM_ENUM()
79
80 /* VALIGN Enum */
81 BEGIN_TM_ENUM(VALIGN)
82     TM_ENUM(0, VA, TOP)
83     TM_ENUM(1, VA, CENTER)
84     TM_ENUM(2, VA, BOTTOM)
85 END_TM_ENUM()
86
87 /* OFFSETTYPE Enum */
88 BEGIN_TM_ENUM(OFFSETTYPE)
89     TM_ENUM(0, OT, TOPLEFT)
90     TM_ENUM(1, OT, TOPRIGHT)
91     TM_ENUM(2, OT, TOPMIDDLE)
92     TM_ENUM(3, OT, BOTTOMLEFT)
93     TM_ENUM(4, OT, BOTTOMRIGHT)
94     TM_ENUM(5, OT, BOTTOMMIDDLE)
95     TM_ENUM(6, OT, MIDDLELEFT)
96     TM_ENUM(7, OT, MIDDLERIGHT)
97     TM_ENUM(8, OT, LEFTOFCAPTION)
98     TM_ENUM(9, OT, RIGHTOFCAPTION)
99     TM_ENUM(10, OT, LEFTOFLASTBUTTON)
100     TM_ENUM(11, OT, RIGHTOFLASTBUTTON)
101     TM_ENUM(12, OT, ABOVELASTBUTTON)
102     TM_ENUM(13, OT, BELOWLASTBUTTON)
103 END_TM_ENUM()
104
105 /* ICONEFFECT Enum */
106 BEGIN_TM_ENUM(ICONEFFECT)
107     TM_ENUM(0, ICE, NONE)
108     TM_ENUM(1, ICE, GLOW)
109     TM_ENUM(2, ICE, SHADOW)
110     TM_ENUM(3, ICE, PULSE)
111     TM_ENUM(4, ICE, ALPHA)
112 END_TM_ENUM()
113
114 /* TEXTSHADOWTYPE Enum */
115 BEGIN_TM_ENUM(TEXTSHADOWTYPE)
116     TM_ENUM(0, TST, NONE)
117     TM_ENUM(1, TST, SINGLE)
118     TM_ENUM(2, TST, CONTINUOUS)
119 END_TM_ENUM()
120
121 /* GLYPHTYPE Enum */
122 BEGIN_TM_ENUM(GLYPHTYPE)
123     TM_ENUM(0, GT, NONE)
124     TM_ENUM(1, GT, IMAGEGLYPH)
125     TM_ENUM(2, GT, FONTGLYPH)
126 END_TM_ENUM()
127
128 /* IMAGESELECTTYPE Enum */
129 BEGIN_TM_ENUM(IMAGESELECTTYPE)
130     TM_ENUM(0, IST, NONE)
131     TM_ENUM(1, IST, SIZE)
132     TM_ENUM(2, IST, DPI)
133 END_TM_ENUM()
134
135 /* TRUESIZESCALINGTYPE Enum */
136 BEGIN_TM_ENUM(TRUESIZESCALINGTYPE)
137     TM_ENUM(0, TSST, NONE)
138     TM_ENUM(1, TSST, SIZE)
139     TM_ENUM(2, TSST, DPI)
140 END_TM_ENUM()
141
142 /* GLYPHFONTSIZINGTYPE Enum */
143 BEGIN_TM_ENUM(GLYPHFONTSIZINGTYPE)
144     TM_ENUM(0, GFST, NONE)
145     TM_ENUM(1, GFST, SIZE)
146     TM_ENUM(2, GFST, DPI)
147 END_TM_ENUM()
148
149
150 /***** PROPERTIES *****/
151 BEGIN_TM_PROPS()
152
153     /* Primitive types */
154     TM_PROP(201, TMT, STRING,                     STRING)
155     TM_PROP(202, TMT, INT,                        INT)
156     TM_PROP(203, TMT, BOOL,                       BOOL)
157     TM_PROP(204, TMT, COLOR,                      COLOR)
158     TM_PROP(205, TMT, MARGINS,                    MARGINS)
159     TM_PROP(206, TMT, FILENAME,                   FILENAME)
160     TM_PROP(207, TMT, SIZE,                       SIZE)
161     TM_PROP(208, TMT, POSITION,                   POSITION)
162     TM_PROP(209, TMT, RECT,                       RECT)
163     TM_PROP(210, TMT, FONT,                       FONT)
164     TM_PROP(211, TMT, INTLIST,                    INTLIST)
165     /* we should have ENUM around here */
166
167     /* Misc properties */
168     TM_PROP(401, TMT, COLORSCHEMES,               STRING)
169     TM_PROP(402, TMT, SIZES,                      STRING)
170     TM_PROP(403, TMT, CHARSET,                    INT)
171
172     /* Documentation properties */
173     TM_PROP(601, TMT, DISPLAYNAME,                STRING)
174     TM_PROP(602, TMT, TOOLTIP,                    STRING)
175     TM_PROP(603, TMT, COMPANY,                    STRING)
176     TM_PROP(604, TMT, AUTHOR,                     STRING)
177     TM_PROP(605, TMT, COPYRIGHT,                  STRING)
178     TM_PROP(606, TMT, URL,                        STRING)
179     TM_PROP(607, TMT, VERSION,                    STRING)
180     TM_PROP(608, TMT, DESCRIPTION,                STRING)
181 #   define TMT_FIRST_RCSTRING_NAME                TMT_DISPLAYNAME
182 #   define TMT_LAST_RCSTRING_NAME                 TMT_DESCRIPTION
183
184     /* Font theme metric properties */
185     TM_PROP(801, TMT, CAPTIONFONT,                FONT)
186     TM_PROP(802, TMT, SMALLCAPTIONFONT,           FONT)
187     TM_PROP(803, TMT, MENUFONT,                   FONT)
188     TM_PROP(804, TMT, STATUSFONT,                 FONT)
189     TM_PROP(805, TMT, MSGBOXFONT,                 FONT)
190     TM_PROP(806, TMT, ICONTITLEFONT,              FONT)
191 #   define TMT_FIRSTFONT                          TMT_CAPTIONFONT
192 #   define TMT_LASTFONT                           TMT_ICONTITLEFONT
193
194     /* Bool theme metric properties */
195     TM_PROP(1001, TMT, FLATMENUS,                 BOOL)
196 #   define TMT_FIRSTBOOL                          TMT_FLATMENUS
197 #   define TMT_LASTBOOL                           TMT_FLATMENUS
198
199     /* Size theme metric properties */
200     TM_PROP(1201, TMT, SIZINGBORDERWIDTH,         SIZE)
201     TM_PROP(1202, TMT, SCROLLBARWIDTH,            SIZE)
202     TM_PROP(1203, TMT, SCROLLBARHEIGHT,           SIZE)
203     TM_PROP(1204, TMT, CAPTIONBARWIDTH,           SIZE)
204     TM_PROP(1205, TMT, CAPTIONBARHEIGHT,          SIZE)
205     TM_PROP(1206, TMT, SMCAPTIONBARWIDTH,         SIZE)
206     TM_PROP(1207, TMT, SMCAPTIONBARHEIGHT,        SIZE)
207     TM_PROP(1208, TMT, MENUBARWIDTH,              SIZE)
208     TM_PROP(1209, TMT, MENUBARHEIGHT,             SIZE)
209 #   define TMT_FIRSTSIZE                          TMT_SIZINGBORDERWIDTH
210 #   define TMT_LASTSIZE                           TMT_MENUBARHEIGHT
211
212     /* Int theme metric properties */
213     TM_PROP(1301, TMT, MINCOLORDEPTH,             INT)
214 #   define TMT_FIRSTINT                           TMT_MINCOLORDEPTH
215 #   define TMT_LASTINT                            TMT_MINCOLORDEPTH
216
217     /* String theme metric properties */
218     TM_PROP(1401, TMT, CSSNAME,                   STRING)
219     TM_PROP(1402, TMT, XMLNAME,                   STRING)
220 #   define TMT_FIRSTSTRING                        TMT_CSSNAME
221 #   define TMT_LASTSTRING                         TMT_XMLNAME
222
223     /* Color theme metric properties */
224     TM_PROP(1601, TMT, SCROLLBAR,                 COLOR)
225     TM_PROP(1602, TMT, BACKGROUND,                COLOR)
226     TM_PROP(1603, TMT, ACTIVECAPTION,             COLOR)
227     TM_PROP(1604, TMT, INACTIVECAPTION,           COLOR)
228     TM_PROP(1605, TMT, MENU,                      COLOR)
229     TM_PROP(1606, TMT, WINDOW,                    COLOR)
230     TM_PROP(1607, TMT, WINDOWFRAME,               COLOR)
231     TM_PROP(1608, TMT, MENUTEXT,                  COLOR)
232     TM_PROP(1609, TMT, WINDOWTEXT,                COLOR)
233     TM_PROP(1610, TMT, CAPTIONTEXT,               COLOR)
234     TM_PROP(1611, TMT, ACTIVEBORDER,              COLOR)
235     TM_PROP(1612, TMT, INACTIVEBORDER,            COLOR)
236     TM_PROP(1613, TMT, APPWORKSPACE,              COLOR)
237     TM_PROP(1614, TMT, HIGHLIGHT,                 COLOR)
238     TM_PROP(1615, TMT, HIGHLIGHTTEXT,             COLOR)
239     TM_PROP(1616, TMT, BTNFACE,                   COLOR)
240     TM_PROP(1617, TMT, BTNSHADOW,                 COLOR)
241     TM_PROP(1618, TMT, GRAYTEXT,                  COLOR)
242     TM_PROP(1619, TMT, BTNTEXT,                   COLOR)
243     TM_PROP(1620, TMT, INACTIVECAPTIONTEXT,       COLOR)
244     TM_PROP(1621, TMT, BTNHIGHLIGHT,              COLOR)
245     TM_PROP(1622, TMT, DKSHADOW3D,                COLOR)
246     TM_PROP(1623, TMT, LIGHT3D,                   COLOR)
247     TM_PROP(1624, TMT, INFOTEXT,                  COLOR)
248     TM_PROP(1625, TMT, INFOBK,                    COLOR)
249     TM_PROP(1626, TMT, BUTTONALTERNATEFACE,       COLOR)
250     TM_PROP(1627, TMT, HOTTRACKING,               COLOR)
251     TM_PROP(1628, TMT, GRADIENTACTIVECAPTION,     COLOR)
252     TM_PROP(1629, TMT, GRADIENTINACTIVECAPTION,   COLOR)
253     TM_PROP(1630, TMT, MENUHILIGHT,               COLOR)
254     TM_PROP(1631, TMT, MENUBAR,                   COLOR)
255 #   define TMT_FIRSTCOLOR                         TMT_SCROLLBAR
256 #   define TMT_LASTCOLOR                          TMT_MENUBAR
257
258     /* hue substitutions */
259     TM_PROP(1801, TMT, FROMHUE1,                  INT)
260     TM_PROP(1802, TMT, FROMHUE2,                  INT)
261     TM_PROP(1803, TMT, FROMHUE3,                  INT)
262     TM_PROP(1804, TMT, FROMHUE4,                  INT)
263     TM_PROP(1805, TMT, FROMHUE5,                  INT)
264     TM_PROP(1806, TMT, TOHUE1,                    INT)
265     TM_PROP(1807, TMT, TOHUE2,                    INT)
266     TM_PROP(1808, TMT, TOHUE3,                    INT)
267     TM_PROP(1809, TMT, TOHUE4,                    INT)
268     TM_PROP(1810, TMT, TOHUE5,                    INT)
269
270     /* color substitutions */
271     TM_PROP(2001, TMT, FROMCOLOR1,                COLOR)
272     TM_PROP(2002, TMT, FROMCOLOR2,                COLOR)
273     TM_PROP(2003, TMT, FROMCOLOR3,                COLOR)
274     TM_PROP(2004, TMT, FROMCOLOR4,                COLOR)
275     TM_PROP(2005, TMT, FROMCOLOR5,                COLOR)
276     TM_PROP(2006, TMT, TOCOLOR1,                  COLOR)
277     TM_PROP(2007, TMT, TOCOLOR2,                  COLOR)
278     TM_PROP(2008, TMT, TOCOLOR3,                  COLOR)
279     TM_PROP(2009, TMT, TOCOLOR4,                  COLOR)
280     TM_PROP(2010, TMT, TOCOLOR5,                  COLOR)
281
282     /* Bool rendering properties */
283     TM_PROP(2201, TMT, TRANSPARENT,               BOOL)
284     TM_PROP(2202, TMT, AUTOSIZE,                  BOOL)
285     TM_PROP(2203, TMT, BORDERONLY,                BOOL)
286     TM_PROP(2204, TMT, COMPOSITED,                BOOL)
287     TM_PROP(2205, TMT, BGFILL,                    BOOL)
288     TM_PROP(2206, TMT, GLYPHTRANSPARENT,          BOOL)
289     TM_PROP(2207, TMT, GLYPHONLY,                 BOOL)
290     TM_PROP(2208, TMT, ALWAYSSHOWSIZINGBAR,       BOOL)
291     TM_PROP(2209, TMT, MIRRORIMAGE,               BOOL)
292     TM_PROP(2210, TMT, UNIFORMSIZING,             BOOL)
293     TM_PROP(2211, TMT, INTEGRALSIZING,            BOOL)
294     TM_PROP(2212, TMT, SOURCEGROW,                BOOL)
295     TM_PROP(2213, TMT, SOURCESHRINK,              BOOL)
296
297     /* Int rendering properties */
298     TM_PROP(2401, TMT, IMAGECOUNT,                INT)
299     TM_PROP(2402, TMT, ALPHALEVEL,                INT)
300     TM_PROP(2403, TMT, BORDERSIZE,                INT)
301     TM_PROP(2404, TMT, ROUNDCORNERWIDTH,          INT)
302     TM_PROP(2405, TMT, ROUNDCORNERHEIGHT,         INT)
303     TM_PROP(2406, TMT, GRADIENTRATIO1,            INT)
304     TM_PROP(2407, TMT, GRADIENTRATIO2,            INT)
305     TM_PROP(2408, TMT, GRADIENTRATIO3,            INT)
306     TM_PROP(2409, TMT, GRADIENTRATIO4,            INT)
307     TM_PROP(2410, TMT, GRADIENTRATIO5,            INT)
308     TM_PROP(2411, TMT, PROGRESSCHUNKSIZE,         INT)
309     TM_PROP(2412, TMT, PROGRESSSPACESIZE,         INT)
310     TM_PROP(2413, TMT, SATURATION,                INT)
311     TM_PROP(2414, TMT, TEXTBORDERSIZE,            INT)
312     TM_PROP(2415, TMT, ALPHATHRESHOLD,            INT)
313     TM_PROP(2416, TMT, WIDTH,                     SIZE)
314     TM_PROP(2417, TMT, HEIGHT,                    SIZE)
315     TM_PROP(2418, TMT, GLYPHINDEX,                INT)
316     TM_PROP(2419, TMT, TRUESIZESTRETCHMARK,       INT)
317     TM_PROP(2420, TMT, MINDPI1,                   INT)
318     TM_PROP(2421, TMT, MINDPI2,                   INT)
319     TM_PROP(2422, TMT, MINDPI3,                   INT)
320     TM_PROP(2423, TMT, MINDPI4,                   INT)
321     TM_PROP(2424, TMT, MINDPI5,                   INT)
322
323     /* Font rendering properties */
324     TM_PROP(2601, TMT, GLYPHFONT,                 FONT)
325
326     /* Filename rendering properties */
327     TM_PROP(3001, TMT, IMAGEFILE,                 FILENAME)
328     TM_PROP(3002, TMT, IMAGEFILE1,                FILENAME)
329     TM_PROP(3003, TMT, IMAGEFILE2,                FILENAME)
330     TM_PROP(3004, TMT, IMAGEFILE3,                FILENAME)
331     TM_PROP(3005, TMT, IMAGEFILE4,                FILENAME)
332     TM_PROP(3006, TMT, IMAGEFILE5,                FILENAME)
333     TM_PROP(3007, TMT, STOCKIMAGEFILE,            FILENAME)
334     TM_PROP(3008, TMT, GLYPHIMAGEFILE,            FILENAME)
335
336     /* String rendering properties */
337     TM_PROP(3201, TMT, TEXT,                      STRING)
338
339     /* Position rendering properties */
340     TM_PROP(3401, TMT, OFFSET,                    POSITION)
341     TM_PROP(3402, TMT, TEXTSHADOWOFFSET,          POSITION)
342     TM_PROP(3403, TMT, MINSIZE,                   POSITION)
343     TM_PROP(3404, TMT, MINSIZE1,                  POSITION)
344     TM_PROP(3405, TMT, MINSIZE2,                  POSITION)
345     TM_PROP(3406, TMT, MINSIZE3,                  POSITION)
346     TM_PROP(3407, TMT, MINSIZE4,                  POSITION)
347     TM_PROP(3408, TMT, MINSIZE5,                  POSITION)
348     TM_PROP(3409, TMT, NORMALSIZE,                POSITION)
349
350     /* Margin rendering properties */
351     TM_PROP(3601, TMT, SIZINGMARGINS,             MARGINS)
352     TM_PROP(3602, TMT, CONTENTMARGINS,            MARGINS)
353     TM_PROP(3603, TMT, CAPTIONMARGINS,            MARGINS)
354
355     /* Color rendering properties */
356     TM_PROP(3801, TMT, BORDERCOLOR,               COLOR)
357     TM_PROP(3802, TMT, FILLCOLOR,                 COLOR)
358     TM_PROP(3803, TMT, TEXTCOLOR,                 COLOR)
359     TM_PROP(3804, TMT, EDGELIGHTCOLOR,            COLOR)
360     TM_PROP(3805, TMT, EDGEHIGHLIGHTCOLOR,        COLOR)
361     TM_PROP(3806, TMT, EDGESHADOWCOLOR,           COLOR)
362     TM_PROP(3807, TMT, EDGEDKSHADOWCOLOR,         COLOR)
363     TM_PROP(3808, TMT, EDGEFILLCOLOR,             COLOR)
364     TM_PROP(3809, TMT, TRANSPARENTCOLOR,          COLOR)
365     TM_PROP(3810, TMT, GRADIENTCOLOR1,            COLOR)
366     TM_PROP(3811, TMT, GRADIENTCOLOR2,            COLOR)
367     TM_PROP(3812, TMT, GRADIENTCOLOR3,            COLOR)
368     TM_PROP(3813, TMT, GRADIENTCOLOR4,            COLOR)
369     TM_PROP(3814, TMT, GRADIENTCOLOR5,            COLOR)
370     TM_PROP(3815, TMT, SHADOWCOLOR,               COLOR)
371     TM_PROP(3816, TMT, GLOWCOLOR,                 COLOR)
372     TM_PROP(3817, TMT, TEXTBORDERCOLOR,           COLOR)
373     TM_PROP(3818, TMT, TEXTSHADOWCOLOR,           COLOR)
374     TM_PROP(3819, TMT, GLYPHTEXTCOLOR,            COLOR)
375     TM_PROP(3820, TMT, GLYPHTRANSPARENTCOLOR,     COLOR)
376     TM_PROP(3821, TMT, FILLCOLORHINT,             COLOR)
377     TM_PROP(3822, TMT, BORDERCOLORHINT,           COLOR)
378     TM_PROP(3823, TMT, ACCENTCOLORHINT,           COLOR)
379
380     /* Enum rendering properties */
381     TM_PROP(4001, TMT, BGTYPE,                    ENUM)
382     TM_PROP(4002, TMT, BORDERTYPE,                ENUM)
383     TM_PROP(4003, TMT, FILLTYPE,                  ENUM)
384     TM_PROP(4004, TMT, SIZINGTYPE,                ENUM)
385     TM_PROP(4005, TMT, HALIGN,                    ENUM)
386     TM_PROP(4006, TMT, CONTENTALIGNMENT,          ENUM)
387     TM_PROP(4007, TMT, VALIGN,                    ENUM)
388     TM_PROP(4008, TMT, OFFSETTYPE,                ENUM)
389     TM_PROP(4009, TMT, ICONEFFECT,                ENUM)
390     TM_PROP(4010, TMT, TEXTSHADOWTYPE,            ENUM)
391     TM_PROP(4011, TMT, IMAGELAYOUT,               ENUM)
392     TM_PROP(4012, TMT, GLYPHTYPE,                 ENUM)
393     TM_PROP(4013, TMT, IMAGESELECTTYPE,           ENUM)
394     TM_PROP(4014, TMT, GLYPHFONTSIZINGTYPE,       ENUM)
395     TM_PROP(4015, TMT, TRUESIZESCALINGTYPE,       ENUM)
396
397     /* custom properties */
398     TM_PROP(5001, TMT, USERPICTURE,               BOOL)
399     TM_PROP(5002, TMT, DEFAULTPANESIZE,           RECT)
400     TM_PROP(5003, TMT, BLENDCOLOR,                COLOR)
401
402 END_TM_PROPS()
403
404
405 /***** PARTS & STATES *****/
406
407 /* BUTTON parts */
408 BEGIN_TM_CLASS_PARTS(BUTTON)
409     TM_PART(1, BP, PUSHBUTTON)
410     TM_PART(2, BP, RADIOBUTTON)
411     TM_PART(3, BP, CHECKBOX)
412     TM_PART(4, BP, GROUPBOX)
413     TM_PART(5, BP, USERBUTTON)
414 END_TM_CLASS_PARTS()
415
416 /* BUTTON - PUSHBUTTON states */
417 BEGIN_TM_PART_STATES(PUSHBUTTON)
418     TM_STATE(1, PBS, NORMAL)
419     TM_STATE(2, PBS, HOT)
420     TM_STATE(3, PBS, PRESSED)
421     TM_STATE(4, PBS, DISABLED)
422     TM_STATE(5, PBS, DEFAULTED)
423 END_TM_PART_STATES()
424
425 /* BUTTON - RADIOBUTTON states */
426 BEGIN_TM_PART_STATES(RADIOBUTTON)
427     TM_STATE(1, RBS, UNCHECKEDNORMAL)
428     TM_STATE(2, RBS, UNCHECKEDHOT)
429     TM_STATE(3, RBS, UNCHECKEDPRESSED)
430     TM_STATE(4, RBS, UNCHECKEDDISABLED)
431     TM_STATE(5, RBS, CHECKEDNORMAL)
432     TM_STATE(6, RBS, CHECKEDHOT)
433     TM_STATE(7, RBS, CHECKEDPRESSED)
434     TM_STATE(8, RBS, CHECKEDDISABLED)
435 END_TM_PART_STATES()
436
437 /* BUTTON - CHECKBOX states */
438 BEGIN_TM_PART_STATES(CHECKBOX)
439     TM_STATE(1, CBS, UNCHECKEDNORMAL)
440     TM_STATE(2, CBS, UNCHECKEDHOT)
441     TM_STATE(3, CBS, UNCHECKEDPRESSED)
442     TM_STATE(4, CBS, UNCHECKEDDISABLED)
443     TM_STATE(5, CBS, CHECKEDNORMAL)
444     TM_STATE(6, CBS, CHECKEDHOT)
445     TM_STATE(7, CBS, CHECKEDPRESSED)
446     TM_STATE(8, CBS, CHECKEDDISABLED)
447     TM_STATE(9, CBS, MIXEDNORMAL)
448     TM_STATE(10, CBS, MIXEDHOT)
449     TM_STATE(11, CBS, MIXEDPRESSED)
450     TM_STATE(12, CBS, MIXEDDISABLED)
451 END_TM_PART_STATES()
452
453 /* BUTTON - GROUPBOX states */
454 BEGIN_TM_PART_STATES(GROUPBOX)
455     TM_STATE(1, GBS, NORMAL)
456     TM_STATE(2, GBS, DISABLED)
457 END_TM_PART_STATES()
458
459 /* CLOCK parts */
460 BEGIN_TM_CLASS_PARTS(CLOCK)
461     TM_PART(1, CLP, TIME)
462 END_TM_CLASS_PARTS()
463
464 /* CLOCK states */
465 BEGIN_TM_PART_STATES(CLOCK)
466     TM_STATE(1, CLS, NORMAL)
467 END_TM_PART_STATES()
468
469 /* COMBOBOX parts */
470 BEGIN_TM_CLASS_PARTS(COMBOBOX)
471     TM_PART(1, CP, DROPDOWNBUTTON)
472 END_TM_CLASS_PARTS()
473
474 /* COMBOBOX states */
475 BEGIN_TM_PART_STATES(COMBOBOX)
476     TM_STATE(1, CBXS, NORMAL)
477     TM_STATE(2, CBXS, HOT)
478     TM_STATE(3, CBXS, PRESSED)
479     TM_STATE(4, CBXS, DISABLED)
480 END_TM_PART_STATES()
481
482 /* EDIT parts */
483 BEGIN_TM_CLASS_PARTS(EDIT)
484     TM_PART(1, EP, EDITTEXT)
485     TM_PART(2, EP, CARET)
486 END_TM_CLASS_PARTS()
487
488 /* EDIT - EDITTEXT states */
489 BEGIN_TM_PART_STATES(EDITTEXT)
490     TM_STATE(1, ETS, NORMAL)
491     TM_STATE(2, ETS, HOT)
492     TM_STATE(3, ETS, SELECTED)
493     TM_STATE(4, ETS, DISABLED)
494     TM_STATE(5, ETS, FOCUSED)
495     TM_STATE(6, ETS, READONLY)
496     TM_STATE(7, ETS, ASSIST)
497 END_TM_PART_STATES()
498
499 /* EXPLORERBAR parts */
500 BEGIN_TM_CLASS_PARTS(EXPLORERBAR)
501     TM_PART(1, EBP, HEADERBACKGROUND)
502     TM_PART(2, EBP, HEADERCLOSE)
503     TM_PART(3, EBP, HEADERPIN)
504     TM_PART(4, EBP, IEBARMENU)
505     TM_PART(5, EBP, NORMALGROUPBACKGROUND)
506     TM_PART(6, EBP, NORMALGROUPCOLLAPSE)
507     TM_PART(7, EBP, NORMALGROUPEXPAND)
508     TM_PART(8, EBP, NORMALGROUPHEAD)
509     TM_PART(9, EBP, SPECIALGROUPBACKGROUND)
510     TM_PART(10, EBP, SPECIALGROUPCOLLAPSE)
511     TM_PART(11, EBP, SPECIALGROUPEXPAND)
512     TM_PART(12, EBP, SPECIALGROUPHEAD)
513 END_TM_CLASS_PARTS()
514
515 /* EXPLORERBAR - HEADERCLOSE states */
516 BEGIN_TM_PART_STATES(HEADERCLOSE)
517     TM_STATE(1, EBHC, NORMAL)
518     TM_STATE(2, EBHC, HOT)
519     TM_STATE(3, EBHC, PRESSED)
520 END_TM_PART_STATES()
521
522 /* EXPLORERBAR - HEADERPIN states */
523 BEGIN_TM_PART_STATES(HEADERPIN)
524     TM_STATE(1, EBHP, NORMAL)
525     TM_STATE(2, EBHP, HOT)
526     TM_STATE(3, EBHP, PRESSED)
527     TM_STATE(4, EBHP, SELECTEDNORMAL)
528     TM_STATE(5, EBHP, SELECTEDHOT)
529     TM_STATE(6, EBHP, SELECTEDPRESSED)
530 END_TM_PART_STATES()
531
532 /* EXPLORERBAR - IEBARMENU states */
533 BEGIN_TM_PART_STATES(IEBARMENU)
534     TM_STATE(1, EBM, NORMAL)
535     TM_STATE(2, EBM, HOT)
536     TM_STATE(3, EBM, PRESSED)
537 END_TM_PART_STATES()
538
539 /* EXPLORERBAR - NORMALGROUPCOLLAPSE states */
540 BEGIN_TM_PART_STATES(NORMALGROUPCOLLAPSE)
541     TM_STATE(1, EBNGC, NORMAL)
542     TM_STATE(2, EBNGC, HOT)
543     TM_STATE(3, EBNGC, PRESSED)
544 END_TM_PART_STATES()
545
546 /* EXPLORERBAR - NORMALGROUPEXPAND states */
547 BEGIN_TM_PART_STATES(NORMALGROUPEXPAND)
548     TM_STATE(1, EBNGE, NORMAL)
549     TM_STATE(2, EBNGE, HOT)
550     TM_STATE(3, EBNGE, PRESSED)
551 END_TM_PART_STATES()
552
553 /* EXPLORERBAR - SPECIALGROUPCOLLAPSE states */
554 BEGIN_TM_PART_STATES(SPECIALGROUPCOLLAPSE)
555     TM_STATE(1, EBSGC, NORMAL)
556     TM_STATE(2, EBSGC, HOT)
557     TM_STATE(3, EBSGC, PRESSED)
558 END_TM_PART_STATES()
559
560 /* EXPLORERBAR - SPECIALGROUPEXPAND states */
561 BEGIN_TM_PART_STATES(SPECIALGROUPEXPAND)
562     TM_STATE(1, EBSGE, NORMAL)
563     TM_STATE(2, EBSGE, HOT)
564     TM_STATE(3, EBSGE, PRESSED)
565 END_TM_PART_STATES()
566
567 /* GLOBALS parts */
568 BEGIN_TM_CLASS_PARTS(GLOBALS)
569     TM_PART(1, GP, BORDER)
570     TM_PART(2, GP, LINEHORZ)
571     TM_PART(3, GP, LINEVERT)
572 END_TM_CLASS_PARTS()
573
574 /* GLOBALS - BORDER states */
575 BEGIN_TM_PART_STATES(BORDER)
576     TM_STATE(1, BSS, FLAT)
577     TM_STATE(2, BSS, RAISED)
578     TM_STATE(3, BSS, SUNKEN)
579 END_TM_PART_STATES()
580
581 /* GLOBALS - LINEHORZ states */
582 BEGIN_TM_PART_STATES(LINEHORZ)
583     TM_STATE(1, LHS, FLAT)
584     TM_STATE(2, LHS, RAISED)
585     TM_STATE(3, LHS, SUNKEN)
586 END_TM_PART_STATES()
587
588 /* GLOBAL - LINEVERT states */
589 BEGIN_TM_PART_STATES(LINEVERT)
590     TM_STATE(1, LVS, FLAT)
591     TM_STATE(2, LVS, RAISED)
592     TM_STATE(3, LVS, SUNKEN)
593 END_TM_PART_STATES()
594
595 /* HEADER parts */
596 BEGIN_TM_CLASS_PARTS(HEADER)
597     TM_PART(1, HP, HEADERITEM)
598     TM_PART(2, HP, HEADERITEMLEFT)
599     TM_PART(3, HP, HEADERITEMRIGHT)
600     TM_PART(4, HP, HEADERSORTARROW)
601 END_TM_CLASS_PARTS()
602
603 /* HEADER - HEADERITEM states */
604 BEGIN_TM_PART_STATES(HEADERITEM)
605     TM_STATE(1, HIS, NORMAL)
606     TM_STATE(2, HIS, HOT)
607     TM_STATE(3, HIS, PRESSED)
608 END_TM_PART_STATES()
609
610 /* HEADER - HEADERITEMLEFT states */
611 BEGIN_TM_PART_STATES(HEADERITEMLEFT)
612     TM_STATE(1, HILS, NORMAL)
613     TM_STATE(2, HILS, HOT)
614     TM_STATE(3, HILS, PRESSED)
615 END_TM_PART_STATES()
616
617 /* HEADER - HEADERITEMRIGHT states */
618 BEGIN_TM_PART_STATES(HEADERITEMRIGHT)
619     TM_STATE(1, HIRS, NORMAL)
620     TM_STATE(2, HIRS, HOT)
621     TM_STATE(3, HIRS, PRESSED)
622 END_TM_PART_STATES()
623
624 /* HEADER - HEADERSORTARROW states */
625 BEGIN_TM_PART_STATES(HEADERSORTARROW)
626     TM_STATE(1, HSAS, SORTEDUP)
627     TM_STATE(2, HSAS, SORTEDDOWN)
628 END_TM_PART_STATES()
629
630 /* LISTVIEW parts */
631 BEGIN_TM_CLASS_PARTS(LISTVIEW)
632     TM_PART(1, LVP, LISTITEM)
633     TM_PART(2, LVP, LISTGROUP)
634     TM_PART(3, LVP, LISTDETAIL)
635     TM_PART(4, LVP, LISTSORTEDDETAIL)
636     TM_PART(5, LVP, EMPTYTEXT)
637 END_TM_CLASS_PARTS()
638
639 /* LISTVIEW - LISTITEM states */
640 BEGIN_TM_PART_STATES(LISTITEM)
641     TM_STATE(1, LIS, NORMAL)
642     TM_STATE(2, LIS, HOT)
643     TM_STATE(3, LIS, SELECTED)
644     TM_STATE(4, LIS, DISABLED)
645     TM_STATE(5, LIS, SELECTEDNOTFOCUS)
646 END_TM_PART_STATES()
647
648 /* MENU parts */
649 BEGIN_TM_CLASS_PARTS(MENU)
650     TM_PART(1, MP, MENUITEM)
651     TM_PART(2, MP, MENUDROPDOWN)
652     TM_PART(3, MP, MENUBARITEM)
653     TM_PART(4, MP, MENUBARDROPDOWN)
654     TM_PART(5, MP, CHEVRON)
655     TM_PART(6, MP, SEPARATOR)
656 END_TM_CLASS_PARTS()
657
658 /* MENU - * states */
659 BEGIN_TM_PART_STATES(MENU)
660     TM_STATE(1, MS, NORMAL)
661     TM_STATE(2, MS, SELECTED)
662     TM_STATE(3, MS, DEMOTED)
663 END_TM_PART_STATES()
664
665 /* MENUBAND parts */
666 BEGIN_TM_CLASS_PARTS(MENUBAND)
667     TM_PART(1, MDP, NEWAPPBUTTON)
668 /* MDP_SEPERATOR isn't a typo, as per Microsoft's headers */
669     TM_PART(2, MDP, SEPERATOR)
670 END_TM_CLASS_PARTS()
671
672 /* MENUBAND states */
673 BEGIN_TM_PART_STATES(MENUBAND)
674     TM_STATE(1, MDS, NORMAL)
675     TM_STATE(2, MDS, HOT)
676     TM_STATE(3, MDS, PRESSED)
677     TM_STATE(4, MDS, DISABLED)
678     TM_STATE(5, MDS, CHECKED)
679     TM_STATE(6, MDS, HOTCHECKED)
680 END_TM_PART_STATES()
681
682 /* PAGE parts */
683 BEGIN_TM_CLASS_PARTS(PAGE)
684     TM_PART(1, PGRP, UP)
685     TM_PART(2, PGRP, DOWN)
686     TM_PART(3, PGRP, UPHORZ)
687     TM_PART(4, PGRP, DOWNHORZ)
688 END_TM_CLASS_PARTS()
689
690 /* PAGE - UP states */
691 BEGIN_TM_PART_STATES(UP)
692     TM_STATE(1, UPS, NORMAL)
693     TM_STATE(2, UPS, HOT)
694     TM_STATE(3, UPS, PRESSED)
695     TM_STATE(4, UPS, DISABLED)
696 END_TM_PART_STATES()
697
698 /* PAGE - DOWN states  */
699 BEGIN_TM_PART_STATES(DOWN)
700     TM_STATE(1, DNS, NORMAL)
701     TM_STATE(2, DNS, HOT)
702     TM_STATE(3, DNS, PRESSED)
703     TM_STATE(4, DNS, DISABLED)
704 END_TM_PART_STATES()
705
706 /* PAGE - UPHORZ states */
707 BEGIN_TM_PART_STATES(UPHORZ)
708     TM_STATE(1, UPHZS, NORMAL)
709     TM_STATE(2, UPHZS, HOT)
710     TM_STATE(3, UPHZS, PRESSED)
711     TM_STATE(4, UPHZS, DISABLED)
712 END_TM_PART_STATES()
713
714 /* PAGE - DOWNHORZ states */
715 BEGIN_TM_PART_STATES(DOWNHORZ)
716     TM_STATE(1, DNHZS, NORMAL)
717     TM_STATE(2, DNHZS, HOT)
718     TM_STATE(3, DNHZS, PRESSED)
719     TM_STATE(4, DNHZS, DISABLED)
720 END_TM_PART_STATES()
721
722 /* PROGRESS parts */
723 BEGIN_TM_CLASS_PARTS(PROGRESS)
724     TM_PART(1, PP, BAR)
725     TM_PART(2, PP, BARVERT)
726     TM_PART(3, PP, CHUNK)
727     TM_PART(4, PP, CHUNKVERT)
728 END_TM_CLASS_PARTS()
729
730 /* REBAR parts */
731 BEGIN_TM_CLASS_PARTS(REBAR)
732     TM_PART(1, RP, GRIPPER)
733     TM_PART(2, RP, GRIPPERVERT)
734     TM_PART(3, RP, BAND)
735     TM_PART(4, RP, CHEVRON)
736     TM_PART(5, RP, CHEVRONVERT)
737 END_TM_CLASS_PARTS()
738
739 /* REBAR - CHEVRON states */
740 BEGIN_TM_PART_STATES(CHEVRON)
741     TM_STATE(1, CHEVS, NORMAL)
742     TM_STATE(2, CHEVS, HOT)
743     TM_STATE(3, CHEVS, PRESSED)
744 END_TM_PART_STATES()
745
746 /* SCROLLBAR parts */
747 BEGIN_TM_CLASS_PARTS(SCROLLBAR)
748     TM_PART(1, SBP, ARROWBTN)
749     TM_PART(2, SBP, THUMBBTNHORZ)
750     TM_PART(3, SBP, THUMBBTNVERT)
751     TM_PART(4, SBP, LOWERTRACKHORZ)
752     TM_PART(5, SBP, UPPERTRACKHORZ)
753     TM_PART(6, SBP, LOWERTRACKVERT)
754     TM_PART(7, SBP, UPPERTRACKVERT)
755     TM_PART(8, SBP, GRIPPERHORZ)
756     TM_PART(9, SBP, GRIPPERVERT)
757     TM_PART(10, SBP, SIZEBOX)
758 END_TM_CLASS_PARTS()
759
760 /* SCROLLBAR - ARROWBTN states */
761 BEGIN_TM_PART_STATES(ARROWBTN)
762     TM_STATE(1, ABS, UPNORMAL)
763     TM_STATE(2, ABS, UPHOT)
764     TM_STATE(3, ABS, UPPRESSED)
765     TM_STATE(4, ABS, UPDISABLED)
766     TM_STATE(5, ABS, DOWNNORMAL)
767     TM_STATE(6, ABS, DOWNHOT)
768     TM_STATE(7, ABS, DOWNPRESSED)
769     TM_STATE(8, ABS, DOWNDISABLED)
770     TM_STATE(9, ABS, LEFTNORMAL)
771     TM_STATE(10, ABS, LEFTHOT)
772     TM_STATE(11, ABS, LEFTPRESSED)
773     TM_STATE(12, ABS, LEFTDISABLED)
774     TM_STATE(13, ABS, RIGHTNORMAL)
775     TM_STATE(14, ABS, RIGHTHOT)
776     TM_STATE(15, ABS, RIGHTPRESSED)
777     TM_STATE(16, ABS, RIGHTDISABLED)
778 END_TM_PART_STATES()
779
780 /* SCROLLBAR - LOWER* / THUMB* / UPPER* states */
781 BEGIN_TM_PART_STATES(SCROLLBAR)
782     TM_STATE(1, SCRBS, NORMAL)
783     TM_STATE(2, SCRBS, HOT)
784     TM_STATE(3, SCRBS, PRESSED)
785     TM_STATE(4, SCRBS, DISABLED)
786 END_TM_PART_STATES()
787
788 /* SCROLLBAR - SIZEBOX states */
789 BEGIN_TM_PART_STATES(SIZEBOX)
790     TM_STATE(1, SZB, RIGHTALIGN)
791     TM_STATE(2, SZB, LEFTALIGN)
792 END_TM_PART_STATES()
793
794 /* SPIN parts */
795 BEGIN_TM_CLASS_PARTS(SPIN)
796     TM_PART(1, SPNP, UP)
797     TM_PART(2, SPNP, DOWN)
798     TM_PART(3, SPNP, UPHORZ)
799     TM_PART(4, SPNP, DOWNHORZ)
800 END_TM_CLASS_PARTS()
801
802 /* SPIN * states */
803 /* See PAGE states */
804
805 /* STARTPANEL parts */
806 BEGIN_TM_CLASS_PARTS(STARTPANEL)
807     TM_PART(1, SPP, USERPANE)
808     TM_PART(2, SPP, MOREPROGRAMS)
809     TM_PART(3, SPP, MOREPROGRAMSARROW)
810     TM_PART(4, SPP, PROGLIST)
811     TM_PART(5, SPP, PROGLISTSEPARATOR)
812     TM_PART(6, SPP, PLACESLIST)
813     TM_PART(7, SPP, PLACESLISTSEPARATOR)
814     TM_PART(8, SPP, LOGOFF)
815     TM_PART(9, SPP, LOGOFFBUTTONS)
816     TM_PART(10, SPP, USERPICTURE)
817     TM_PART(11, SPP, PREVIEW)
818 END_TM_CLASS_PARTS()
819
820 /* STARTPANEL - MOREPROGRAMSARROW states */
821 BEGIN_TM_PART_STATES(MOREPROGRAMSARROW)
822     TM_STATE(1, SPS, NORMAL)
823     TM_STATE(2, SPS, HOT)
824     TM_STATE(3, SPS, PRESSED)
825 END_TM_PART_STATES()
826
827 /* STARTPANEL - LOGOFFBUTTONS states */
828 BEGIN_TM_PART_STATES(LOGOFFBUTTONS)
829     TM_STATE(1, SPLS, NORMAL)
830     TM_STATE(2, SPLS, HOT)
831     TM_STATE(3, SPLS, PRESSED)
832 END_TM_PART_STATES()
833
834 /* STATUS parts */
835 BEGIN_TM_CLASS_PARTS(STATUS)
836     TM_PART(1, SP, PANE)
837     TM_PART(2, SP, GRIPPERPANE)
838     TM_PART(3, SP, GRIPPER)
839 END_TM_CLASS_PARTS()
840
841 /* TAB parts */
842 BEGIN_TM_CLASS_PARTS(TAB)
843     TM_PART(1, TABP, TABITEM)
844     TM_PART(2, TABP, TABITEMLEFTEDGE)
845     TM_PART(3, TABP, TABITEMRIGHTEDGE)
846     TM_PART(4, TABP, TABITEMBOTHEDGE)
847     TM_PART(5, TABP, TOPTABITEM)
848     TM_PART(6, TABP, TOPTABITEMLEFTEDGE)
849     TM_PART(7, TABP, TOPTABITEMRIGHTEDGE)
850     TM_PART(8, TABP, TOPTABITEMBOTHEDGE)
851     TM_PART(9, TABP, PANE)
852     TM_PART(10, TABP, BODY)
853 END_TM_CLASS_PARTS()
854
855 /* TAB - TABITEM states */
856 BEGIN_TM_PART_STATES(TABITEM)
857     TM_STATE(1, TIS, NORMAL)
858     TM_STATE(2, TIS, HOT)
859     TM_STATE(3, TIS, SELECTED)
860     TM_STATE(4, TIS, DISABLED)
861     TM_STATE(5, TIS, FOCUSED)
862 END_TM_PART_STATES()
863
864 /* TAB - TABITEMLEFTEDGE states */
865 BEGIN_TM_PART_STATES(TABITEMLEFTEDGE)
866     TM_STATE(1, TILES, NORMAL)
867     TM_STATE(2, TILES, HOT)
868     TM_STATE(3, TILES, SELECTED)
869     TM_STATE(4, TILES, DISABLED)
870     TM_STATE(5, TILES, FOCUSED)
871 END_TM_PART_STATES()
872
873 /* TAB - TABITEMRIGHTEDGE states */
874 BEGIN_TM_PART_STATES(TABITEMRIGHTEDGE)
875     TM_STATE(1, TIRES, NORMAL)
876     TM_STATE(2, TIRES, HOT)
877     TM_STATE(3, TIRES, SELECTED)
878     TM_STATE(4, TIRES, DISABLED)
879     TM_STATE(5, TIRES, FOCUSED)
880 END_TM_PART_STATES()
881
882 /* TAB - TABITEMBOTHEDGES states */
883 BEGIN_TM_PART_STATES(TABITEMBOTHEDGES)
884     TM_STATE(1, TIBES, NORMAL)
885     TM_STATE(2, TIBES, HOT)
886     TM_STATE(3, TIBES, SELECTED)
887     TM_STATE(4, TIBES, DISABLED)
888     TM_STATE(5, TIBES, FOCUSED)
889 END_TM_PART_STATES()
890
891 /* TAB - TOPTABITEM states */
892 BEGIN_TM_PART_STATES(TOPTABITEM)
893     TM_STATE(1, TTIS, NORMAL)
894     TM_STATE(2, TTIS, HOT)
895     TM_STATE(3, TTIS, SELECTED)
896     TM_STATE(4, TTIS, DISABLED)
897     TM_STATE(5, TTIS, FOCUSED)
898 END_TM_PART_STATES()
899
900 /* TAB - TOPTABITEMLEFTEDGE states */
901 BEGIN_TM_PART_STATES(TOPTABITEMLEFTEDGE)
902     TM_STATE(1, TTILES, NORMAL)
903     TM_STATE(2, TTILES, HOT)
904     TM_STATE(3, TTILES, SELECTED)
905     TM_STATE(4, TTILES, DISABLED)
906     TM_STATE(5, TTILES, FOCUSED)
907 END_TM_PART_STATES()
908
909 /* TAB - TOPTABITEMRIGHTEDGE states */
910 BEGIN_TM_PART_STATES(TOPTABITEMRIGHTEDGE)
911     TM_STATE(1, TTIRES, NORMAL)
912     TM_STATE(2, TTIRES, HOT)
913     TM_STATE(3, TTIRES, SELECTED)
914     TM_STATE(4, TTIRES, DISABLED)
915     TM_STATE(5, TTIRES, FOCUSED)
916 END_TM_PART_STATES()
917
918 /* TAB - TOPTABITEMBOTHEDGES states */
919 BEGIN_TM_PART_STATES(TOPTABITEMBOTHEDGES)
920     TM_STATE(1, TTIBES, NORMAL)
921     TM_STATE(2, TTIBES, HOT)
922     TM_STATE(3, TTIBES, SELECTED)
923     TM_STATE(4, TTIBES, DISABLED)
924     TM_STATE(5, TTIBES, FOCUSED)
925 END_TM_PART_STATES()
926
927 /* TASKBAND parts */
928 BEGIN_TM_CLASS_PARTS(TASKBAND)
929     TM_PART(1, TDP, GROUPCOUNT)
930     TM_PART(2, TDP, FLASHBUTTON)
931     TM_PART(3, TDP, FLASHBUTTONGROUPMENU)
932 END_TM_CLASS_PARTS()
933
934 /* TASKBAR parts */
935 BEGIN_TM_CLASS_PARTS(TASKBAR)
936     TM_PART(1, TBP, BACKGROUNDBOTTOM)
937     TM_PART(2, TBP, BACKGROUNDRIGHT)
938     TM_PART(3, TBP, BACKGROUNDTOP)
939     TM_PART(4, TBP, BACKGROUNDLEFT)
940     TM_PART(5, TBP, SIZINGBARBOTTOM)
941     TM_PART(6, TBP, SIZINGBARRIGHT)
942     TM_PART(7, TBP, SIZINGBARTOP)
943     TM_PART(8, TBP, SIZINGBARLEFT)
944 END_TM_CLASS_PARTS()
945
946 /* TOOLBAR parts */
947 BEGIN_TM_CLASS_PARTS(TOOLBAR)
948     TM_PART(1, TP, BUTTON)
949     TM_PART(2, TP, DROPDOWNBUTTON)
950     TM_PART(3, TP, SPLITBUTTON)
951     TM_PART(4, TP, SPLITBUTTONDROPDOWN)
952     TM_PART(5, TP, SEPARATOR)
953     TM_PART(6, TP, SEPARATORVERT)
954 END_TM_CLASS_PARTS()
955
956 /* TOOLBAR - * states */
957 BEGIN_TM_PART_STATES(TOOLBAR)
958     TM_STATE(1, TS, NORMAL)
959     TM_STATE(2, TS, HOT)
960     TM_STATE(3, TS, PRESSED)
961     TM_STATE(4, TS, DISABLED)
962     TM_STATE(5, TS, CHECKED)
963     TM_STATE(6, TS, HOTCHECKED)
964 END_TM_PART_STATES()
965
966 /* TOOLTIP parts */
967 BEGIN_TM_CLASS_PARTS(TOOLTIP)
968     TM_PART(1, TTP, STANDARD)
969     TM_PART(2, TTP, STANDARDTITLE)
970     TM_PART(3, TTP, BALLOON)
971     TM_PART(4, TTP, BALLOONTITLE)
972     TM_PART(5, TTP, CLOSE)
973 END_TM_CLASS_PARTS()
974
975 /* TOOLTIP - STANDARD states */
976 BEGIN_TM_PART_STATES(STANDARD)
977     TM_STATE(1, TTSS, NORMAL)
978     TM_STATE(2, TTSS, LINK)
979 END_TM_PART_STATES()
980
981 /* TOOLTIP - STANDARDTITLE states */
982 /* See TOOLTIP STANDARD  */
983
984 /* TOOLTIP - BALLOON states */
985 BEGIN_TM_PART_STATES(BALLOON)
986     TM_STATE(1, TTBS, NORMAL)
987     TM_STATE(2, TTBS, LINK)
988 END_TM_PART_STATES()
989
990 /* TOOLTIP - BALLOONTITLE states */
991 /* See TOOLTIP BALLOON */
992
993 /* TOOLTIP - CLOSE states */
994 BEGIN_TM_PART_STATES(CLOSE)
995     TM_STATE(1, TTCS, NORMAL)
996     TM_STATE(2, TTCS, HOT)
997     TM_STATE(3, TTCS, PRESSED)
998 END_TM_PART_STATES()
999
1000 /* TRACKBAR parts */
1001 BEGIN_TM_CLASS_PARTS(TRACKBAR)
1002     TM_PART(1, TKP, TRACK)
1003     TM_PART(2, TKP, TRACKVERT)
1004     TM_PART(3, TKP, THUMB)
1005     TM_PART(4, TKP, THUMBBOTTOM)
1006     TM_PART(5, TKP, THUMBTOP)
1007     TM_PART(6, TKP, THUMBVERT)
1008     TM_PART(7, TKP, THUMBLEFT)
1009     TM_PART(8, TKP, THUMBRIGHT)
1010     TM_PART(9, TKP, TICS)
1011     TM_PART(10, TKP, TICSVERT)
1012 END_TM_CLASS_PARTS()
1013
1014 /* TRACKBAR states */
1015 BEGIN_TM_PART_STATES(TRACKBAR)
1016     TM_STATE(1, TKS, NORMAL)
1017 END_TM_PART_STATES()
1018
1019 /* TRACKBAR - TRACK states */
1020 BEGIN_TM_PART_STATES(TRACK)
1021     TM_STATE(1, TRS, NORMAL)
1022 END_TM_PART_STATES()
1023
1024 /* TRACKBAR - TRACKVERT states */
1025 BEGIN_TM_PART_STATES(TRACKVERT)
1026     TM_STATE(1, TRVS, NORMAL)
1027 END_TM_PART_STATES()
1028
1029 /* TRACKBAR - THUMB states */
1030 BEGIN_TM_PART_STATES(THUMB)
1031     TM_STATE(1, TUS, NORMAL)
1032     TM_STATE(2, TUS, HOT)
1033     TM_STATE(3, TUS, PRESSED)
1034     TM_STATE(4, TUS, FOCUSED)
1035     TM_STATE(5, TUS, DISABLED)
1036 END_TM_PART_STATES()
1037
1038 /* TRACKBAR - THUMBBOTTOM states */
1039 BEGIN_TM_PART_STATES(THUMBBOTTOM)
1040     TM_STATE(1, TUBS, NORMAL)
1041     TM_STATE(2, TUBS, HOT)
1042     TM_STATE(3, TUBS, PRESSED)
1043     TM_STATE(4, TUBS, FOCUSED)
1044     TM_STATE(5, TUBS, DISABLED)
1045 END_TM_PART_STATES()
1046
1047 /* TRACKBAR - THUMBTOP states */
1048 BEGIN_TM_PART_STATES(THUMBTOP)
1049     TM_STATE(1, TUTS, NORMAL)
1050     TM_STATE(2, TUTS, HOT)
1051     TM_STATE(3, TUTS, PRESSED)
1052     TM_STATE(4, TUTS, FOCUSED)
1053     TM_STATE(5, TUTS, DISABLED)
1054 END_TM_PART_STATES()
1055
1056 /* TRACKBAR - THUMBVERT states */
1057 BEGIN_TM_PART_STATES(THUMBVERT)
1058     TM_STATE(1, TUVS, NORMAL)
1059     TM_STATE(2, TUVS, HOT)
1060     TM_STATE(3, TUVS, PRESSED)
1061     TM_STATE(4, TUVS, FOCUSED)
1062     TM_STATE(5, TUVS, DISABLED)
1063 END_TM_PART_STATES()
1064
1065 /* TRACKBAR - THUMBLEFT states */
1066 BEGIN_TM_PART_STATES(THUMBLEFT)
1067     TM_STATE(1, TUVLS, NORMAL)
1068     TM_STATE(2, TUVLS, HOT)
1069     TM_STATE(3, TUVLS, PRESSED)
1070     TM_STATE(4, TUVLS, FOCUSED)
1071     TM_STATE(5, TUVLS, DISABLED)
1072 END_TM_PART_STATES()
1073
1074 /* TRACKBAR - THUMBRIGHT states */
1075 BEGIN_TM_PART_STATES(THUMBRIGHT)
1076     TM_STATE(1, TUVRS, NORMAL)
1077     TM_STATE(2, TUVRS, HOT)
1078     TM_STATE(3, TUVRS, PRESSED)
1079     TM_STATE(4, TUVRS, FOCUSED)
1080     TM_STATE(5, TUVRS, DISABLED)
1081 END_TM_PART_STATES()
1082
1083 /* TRACKBAR - TICS states */
1084 BEGIN_TM_PART_STATES(TICS)
1085     TM_STATE(1, TSS, NORMAL)
1086 END_TM_PART_STATES()
1087
1088 /* TRACKBAR - TICSVERT states */
1089 BEGIN_TM_PART_STATES(TICSVERT)
1090     TM_STATE(1, TSVS, NORMAL)
1091 END_TM_PART_STATES()
1092
1093 /* TRAYNOTIFY parts */
1094 BEGIN_TM_CLASS_PARTS(TRAYNOTIFY)
1095     TM_PART(1, TNP, BACKGROUND)
1096     TM_PART(2, TNP, ANIMBACKGROUND)
1097 END_TM_CLASS_PARTS()
1098
1099 /* TREEVIEW parts */
1100 BEGIN_TM_CLASS_PARTS(TREEVIEW)
1101     TM_PART(1, TVP, TREEITEM)
1102     TM_PART(2, TVP, GLYPH)
1103     TM_PART(3, TVP, BRANCH)
1104 END_TM_CLASS_PARTS()
1105
1106 /* TREEVIEW - TREEITEM states */
1107 BEGIN_TM_PART_STATES(TREEITEM)
1108     TM_STATE(1, TREIS, NORMAL)
1109     TM_STATE(2, TREIS, HOT)
1110     TM_STATE(3, TREIS, SELECTED)
1111     TM_STATE(4, TREIS, DISABLED)
1112     TM_STATE(5, TREIS, SELECTEDNOTFOCUS)
1113 END_TM_PART_STATES()
1114
1115 /* TREEVIEW - GLYPH states */
1116 BEGIN_TM_PART_STATES(GLYPH)
1117     TM_STATE(1, GLPS, CLOSED)
1118     TM_STATE(2, GLPS, OPENED)
1119 END_TM_PART_STATES()
1120
1121 /* WINDOW parts */
1122 BEGIN_TM_CLASS_PARTS(WINDOW)
1123     TM_PART(1, WP, CAPTION)
1124     TM_PART(2, WP, SMALLCAPTION)
1125     TM_PART(3, WP, MINCAPTION)
1126     TM_PART(4, WP, SMALLMINCAPTION)
1127     TM_PART(5, WP, MAXCAPTION)
1128     TM_PART(6, WP, SMALLMAXCAPTION)
1129     TM_PART(7, WP, FRAMELEFT)
1130     TM_PART(8, WP, FRAMERIGHT)
1131     TM_PART(9, WP, FRAMEBOTTOM)
1132     TM_PART(10, WP, SMALLFRAMELEFT)
1133     TM_PART(11, WP, SMALLFRAMERIGHT)
1134     TM_PART(12, WP, SMALLFRAMEBOTTOM)
1135     TM_PART(13, WP, SYSBUTTON)
1136     TM_PART(14, WP, MDISYSBUTTON)
1137     TM_PART(15, WP, MINBUTTON)
1138     TM_PART(16, WP, MDIMINBUTTON)
1139     TM_PART(17, WP, MAXBUTTON)
1140     TM_PART(18, WP, CLOSEBUTTON)
1141     TM_PART(19, WP, SMALLCLOSEBUTTON)
1142     TM_PART(20, WP, MDICLOSEBUTTON)
1143     TM_PART(21, WP, RESTOREBUTTON)
1144     TM_PART(22, WP, MDIRESTOREBUTTON)
1145     TM_PART(23, WP, HELPBUTTON)
1146     TM_PART(24, WP, MDIHELPBUTTON)
1147     TM_PART(25, WP, HORZSCROLL)
1148     TM_PART(26, WP, HORZTHUMB)
1149     TM_PART(27, WP, VERTSCROLL)
1150     TM_PART(28, WP, VERTTHUMB)
1151     TM_PART(29, WP, DIALOG)
1152     TM_PART(30, WP, CAPTIONSIZINGTEMPLATE)
1153     TM_PART(31, WP, SMALLCAPTIONSIZINGTEMPLATE)
1154     TM_PART(32, WP, FRAMELEFTSIZINGTEMPLATE)
1155     TM_PART(33, WP, SMALLFRAMELEFTSIZINGTEMPLATE)
1156     TM_PART(34, WP, FRAMERIGHTSIZINGTEMPLATE)
1157     TM_PART(35, WP, SMALLFRAMERIGHTSIZINGTEMPLATE)
1158     TM_PART(36, WP, FRAMEBOTTOMSIZINGTEMPLATE)
1159     TM_PART(37, WP, SMALLFRAMEBOTTOMSIZINGTEMPLATE)
1160 END_TM_CLASS_PARTS()
1161
1162 /* WINDOW - CAPTION / SMALLCAPTION states */
1163 BEGIN_TM_PART_STATES(CAPTION)
1164     TM_STATE(1, CS, ACTIVE)
1165     TM_STATE(2, CS, INACTIVE)
1166     TM_STATE(3, CS, DISABLED)
1167 END_TM_PART_STATES()
1168
1169 /* WINDOW - MINCAPTION / SMALLMINCAPTION states */
1170 BEGIN_TM_PART_STATES(MINCAPTION)
1171     TM_STATE(1, MNCS, ACTIVE)
1172     TM_STATE(2, MNCS, INACTIVE)
1173     TM_STATE(3, MNCS, DISABLED)
1174 END_TM_PART_STATES()
1175
1176 /* WINDOW - MAXCAPTION / SMALLMAXCAPTION states */
1177 BEGIN_TM_PART_STATES(MAXCAPTION)
1178     TM_STATE(1, MXCS, ACTIVE)
1179     TM_STATE(2, MXCS, INACTIVE)
1180     TM_STATE(3, MXCS, DISABLED)
1181 END_TM_PART_STATES()
1182
1183 /* WINDOW - FRAME* / SMALLFRAME* states */
1184 BEGIN_TM_PART_STATES(FRAME)
1185     TM_STATE(1, FS, ACTIVE)
1186     TM_STATE(2, FS, INACTIVE)
1187 END_TM_PART_STATES()
1188
1189 /* WINDOW - SYSBUTTON / MDISYSBUTTON states */
1190 BEGIN_TM_PART_STATES(SYSBUTTON)
1191     TM_STATE(1, SBS, NORMAL)
1192     TM_STATE(2, SBS, HOT)
1193     TM_STATE(3, SBS, PUSHED)
1194     TM_STATE(4, SBS, DISABLED)
1195 END_TM_PART_STATES()
1196
1197 /* WINDOW - MINBUTTON / MDIMINBUTTON states */
1198 BEGIN_TM_PART_STATES(MINBUTTON)
1199     TM_STATE(1, MINBS, NORMAL)
1200     TM_STATE(2, MINBS, HOT)
1201     TM_STATE(3, MINBS, PUSHED)
1202     TM_STATE(4, MINBS, DISABLED)
1203 END_TM_PART_STATES()
1204
1205 /* WINDOW - MAXBUTTON states */
1206 BEGIN_TM_PART_STATES(MAXBUTTON)
1207     TM_STATE(1, MAXBS, NORMAL)
1208     TM_STATE(2, MAXBS, HOT)
1209     TM_STATE(3, MAXBS, PUSHED)
1210     TM_STATE(4, MAXBS, DISABLED)
1211 END_TM_PART_STATES()
1212
1213 /* WINDOW - CLOSEBUTTON / SMALLCLOSEBUTTON / MDICLOSEBUTTON states */
1214 BEGIN_TM_PART_STATES(CLOSEBUTTON)
1215     TM_STATE(1, CBS, NORMAL)
1216     TM_STATE(2, CBS, HOT)
1217     TM_STATE(3, CBS, PUSHED)
1218     TM_STATE(4, CBS, DISABLED)
1219 END_TM_PART_STATES()
1220
1221 /* WINDOW - RESTOREBUTTON / MDIRESTOREBUTTON states */
1222 BEGIN_TM_PART_STATES(RESTOREBUTTON)
1223     TM_STATE(1, RBS, NORMAL)
1224     TM_STATE(2, RBS, HOT)
1225     TM_STATE(3, RBS, PUSHED)
1226     TM_STATE(4, RBS, DISABLED)
1227 END_TM_PART_STATES()
1228
1229 /* WINDOW - HELPBUTTON / MDIHELPBUTTON states */
1230 BEGIN_TM_PART_STATES(HELPBUTTON)
1231     TM_STATE(1, HBS, NORMAL)
1232     TM_STATE(2, HBS, HOT)
1233     TM_STATE(3, HBS, PUSHED)
1234     TM_STATE(4, HBS, DISABLED)
1235 END_TM_PART_STATES()
1236
1237 /* WINDOW - HORZSCROLL states */
1238 BEGIN_TM_PART_STATES(HORZSCROLL)
1239     TM_STATE(1, HSS, NORMAL)
1240     TM_STATE(2, HSS, HOT)
1241     TM_STATE(3, HSS, PUSHED)
1242     TM_STATE(4, HSS, DISABLED)
1243 END_TM_PART_STATES()
1244
1245 /* WINDOW - HORZTHUMB states */
1246 BEGIN_TM_PART_STATES(HORZTHUMB)
1247     TM_STATE(1, HTS, NORMAL)
1248     TM_STATE(2, HTS, HOT)
1249     TM_STATE(3, HTS, PUSHED)
1250     TM_STATE(4, HTS, DISABLED)
1251 END_TM_PART_STATES()
1252
1253 /* WINDOW - VERTSCROLL states */
1254 BEGIN_TM_PART_STATES(VERTSCROLL)
1255     TM_STATE(1, VSS, NORMAL)
1256     TM_STATE(2, VSS, HOT)
1257     TM_STATE(3, VSS, PUSHED)
1258     TM_STATE(4, VSS, DISABLED)
1259 END_TM_PART_STATES()
1260
1261 /* WINDOW - VERTTHUMB states */
1262 BEGIN_TM_PART_STATES(VERTTHUMB)
1263     TM_STATE(1, VTS, NORMAL)
1264     TM_STATE(2, VTS, HOT)
1265     TM_STATE(3, VTS, PUSHED)
1266     TM_STATE(4, VTS, DISABLED)
1267 END_TM_PART_STATES()
1268
1269 END_TM_SCHEMA(ThemeMgrSchema)
1270 #endif