-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTmschema.h
1240 lines (1091 loc) · 44.4 KB
/
Tmschema.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//-----------------------------------------------------------------
// TmSchema.h - Theme Manager schema (properties, parts, etc)
//-----------------------------------------------------------------
//
// Diese Datei ist Bestandteil von EasyCash&Tax, der freien EÜR-Fibu
//
// Copyleft (GPLv3) 2020 Thomas Mielke
//
// Dies ist freie Software; Sie dürfen sie unter den Bedingungen der
// GNU General Public License, wie von der Free Software Foundation
// veröffentlicht, weiterverteilen und/oder modifizieren; entweder gemäß
// Version 3 der Lizenz oder (nach Ihrer Option) jeder späteren Version.
//
// Diese Software wird in der Hoffnung weiterverbreitet, dass sie nützlich
// sein wird, jedoch OHNE IRGENDEINE GARANTIE, auch ohne die implizierte
// Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK.
// Mehr Details finden Sie in der GNU Lesser General Public License.
//
// Sie sollten eine Kopie der GNU General Public License Version 3 zusammen mit
// dieser Software erhalten haben; falls nicht, schreiben Sie an die Free
// Software Foundation, Inc., 51 Franklin St, 5th Floor, Boston, MA 02110, USA.
//
// Note: this file is normally #include-ed twice a single .cpp
// file. The 2nd time, SCHEME_STRINGS should be defined.
// This allows the enums and strings to be kept in a
// single logical table and ensure they stay in sync with
// each other.
//-----------------------------------------------------------------
#if (defined(SCHEMA_STRINGS)) || (! defined(TMSCHEMA_H))
//-----------------------------------------------------------------
#define TMSCHEMA_H
//-----------------------------------------------------------------
#include "SchemaDef.h"
//-----------------------------------------------------------------
#define THEMEMGR_VERSION 1 // increment if order of props changes or
// any props are deleted (will prevent loading
// of controlsets that use older version
//-----------------------------------------------------------------
BEGIN_TM_SCHEMA(ThemeMgrSchema)
//-----------------------------------------------------------------
// TM_ENUM (must also be declared in PROPERTIES section)
//
// these cannot be renumbered (part of uxtheme API)
//-----------------------------------------------------------------
BEGIN_TM_ENUM(BGTYPE)
TM_ENUM(0, BT, IMAGEFILE)
TM_ENUM(1, BT, BORDERFILL)
TM_ENUM(2, BT, NONE)
END_TM_ENUM()
BEGIN_TM_ENUM(IMAGELAYOUT)
TM_ENUM(0, IL, VERTICAL)
TM_ENUM(1, IL, HORIZONTAL)
END_TM_ENUM()
BEGIN_TM_ENUM(BORDERTYPE)
TM_ENUM(0, BT, RECT)
TM_ENUM(1, BT, ROUNDRECT)
TM_ENUM(2, BT, ELLIPSE)
END_TM_ENUM()
BEGIN_TM_ENUM(FILLTYPE)
TM_ENUM(0, FT, SOLID)
TM_ENUM(1, FT, VERTGRADIENT)
TM_ENUM(2, FT, HORZGRADIENT)
TM_ENUM(3, FT, RADIALGRADIENT)
TM_ENUM(4, FT, TILEIMAGE)
END_TM_ENUM()
BEGIN_TM_ENUM(SIZINGTYPE)
TM_ENUM(0, ST, TRUESIZE)
TM_ENUM(1, ST, STRETCH)
TM_ENUM(2, ST, TILE)
END_TM_ENUM()
BEGIN_TM_ENUM(HALIGN)
TM_ENUM(0, HA, LEFT)
TM_ENUM(1, HA, CENTER)
TM_ENUM(2, HA, RIGHT)
END_TM_ENUM()
BEGIN_TM_ENUM(CONTENTALIGNMENT)
TM_ENUM(0, CA, LEFT)
TM_ENUM(1, CA, CENTER)
TM_ENUM(2, CA, RIGHT)
END_TM_ENUM()
BEGIN_TM_ENUM(VALIGN)
TM_ENUM(0, VA, TOP)
TM_ENUM(1, VA, CENTER)
TM_ENUM(2, VA, BOTTOM)
END_TM_ENUM()
BEGIN_TM_ENUM(OFFSETTYPE)
TM_ENUM(0, OT, TOPLEFT)
TM_ENUM(1, OT, TOPRIGHT)
TM_ENUM(2, OT, TOPMIDDLE)
TM_ENUM(3, OT, BOTTOMLEFT)
TM_ENUM(4, OT, BOTTOMRIGHT)
TM_ENUM(5, OT, BOTTOMMIDDLE)
TM_ENUM(6, OT, MIDDLELEFT)
TM_ENUM(7, OT, MIDDLERIGHT)
TM_ENUM(8, OT, LEFTOFCAPTION)
TM_ENUM(9, OT, RIGHTOFCAPTION)
TM_ENUM(10, OT, LEFTOFLASTBUTTON)
TM_ENUM(11, OT, RIGHTOFLASTBUTTON)
TM_ENUM(12, OT, ABOVELASTBUTTON)
TM_ENUM(13, OT, BELOWLASTBUTTON)
END_TM_ENUM()
BEGIN_TM_ENUM(ICONEFFECT)
TM_ENUM(0, ICE, NONE)
TM_ENUM(1, ICE, GLOW)
TM_ENUM(2, ICE, SHADOW)
TM_ENUM(3, ICE, PULSE)
TM_ENUM(4, ICE, ALPHA)
END_TM_ENUM()
BEGIN_TM_ENUM(TEXTSHADOWTYPE)
TM_ENUM(0, TST, NONE)
TM_ENUM(1, TST, SINGLE)
TM_ENUM(2, TST, CONTINUOUS)
END_TM_ENUM()
BEGIN_TM_ENUM(GLYPHTYPE)
TM_ENUM(0, GT, NONE)
TM_ENUM(1, GT, IMAGEGLYPH)
TM_ENUM(2, GT, FONTGLYPH)
END_TM_ENUM()
BEGIN_TM_ENUM(IMAGESELECTTYPE)
TM_ENUM(0, IST, NONE)
TM_ENUM(1, IST, SIZE)
TM_ENUM(2, IST, DPI)
END_TM_ENUM()
BEGIN_TM_ENUM(TRUESIZESCALINGTYPE)
TM_ENUM(0, TSST, NONE)
TM_ENUM(1, TSST, SIZE)
TM_ENUM(2, TSST, DPI)
END_TM_ENUM()
BEGIN_TM_ENUM(GLYPHFONTSIZINGTYPE)
TM_ENUM(0, GFST, NONE)
TM_ENUM(1, GFST, SIZE)
TM_ENUM(2, GFST, DPI)
END_TM_ENUM()
//-----------------------------------------------------------------
// PROPERTIES - used by uxtheme rendering and controls
//
// these cannot be renumbered (part of uxtheme API)
//-----------------------------------------------------------------
BEGIN_TM_PROPS()
//---- primitive types ----
TM_PROP(201, TMT, STRING, STRING)
TM_PROP(202, TMT, INT, INT)
TM_PROP(203, TMT, BOOL, BOOL)
TM_PROP(204, TMT, COLOR, COLOR)
TM_PROP(205, TMT, MARGINS, MARGINS)
TM_PROP(206, TMT, FILENAME, FILENAME)
TM_PROP(207, TMT, SIZE, SIZE)
TM_PROP(208, TMT, POSITION, POSITION)
TM_PROP(209, TMT, RECT, RECT)
TM_PROP(210, TMT, FONT, FONT)
TM_PROP(211, TMT, INTLIST, INTLIST)
//---- special misc. properties ----
TM_PROP(401, TMT, COLORSCHEMES, STRING)
TM_PROP(402, TMT, SIZES, STRING)
TM_PROP(403, TMT, CHARSET, INT)
//---- [documentation] properties ----
#define TMT_FIRST_RCSTRING_NAME TMT_DISPLAYNAME
#define TMT_LAST_RCSTRING_NAME TMT_DESCRIPTION
TM_PROP(601, TMT, DISPLAYNAME, STRING)
TM_PROP(602, TMT, TOOLTIP, STRING)
TM_PROP(603, TMT, COMPANY, STRING)
TM_PROP(604, TMT, AUTHOR, STRING)
TM_PROP(605, TMT, COPYRIGHT, STRING)
TM_PROP(606, TMT, URL, STRING)
TM_PROP(607, TMT, VERSION, STRING)
TM_PROP(608, TMT, DESCRIPTION, STRING)
//---- theme metrics: fonts ----
#define TMT_FIRSTFONT TMT_CAPTIONFONT
#define TMT_LASTFONT TMT_ICONTITLEFONT
TM_PROP(801, TMT, CAPTIONFONT, FONT)
TM_PROP(802, TMT, SMALLCAPTIONFONT, FONT)
TM_PROP(803, TMT, MENUFONT, FONT)
TM_PROP(804, TMT, STATUSFONT, FONT)
TM_PROP(805, TMT, MSGBOXFONT, FONT)
TM_PROP(806, TMT, ICONTITLEFONT, FONT)
//---- theme metrics: bools ----
#define TMT_FIRSTBOOL TMT_FLATMENUS
#define TMT_LASTBOOL TMT_FLATMENUS
TM_PROP(1001, TMT, FLATMENUS, BOOL)
//---- theme metrics: sizes ----
#define TMT_FIRSTSIZE TMT_SIZINGBORDERWIDTH
#define TMT_LASTSIZE TMT_MENUBARHEIGHT
TM_PROP(1201, TMT, SIZINGBORDERWIDTH, SIZE)
TM_PROP(1202, TMT, SCROLLBARWIDTH, SIZE)
TM_PROP(1203, TMT, SCROLLBARHEIGHT, SIZE)
TM_PROP(1204, TMT, CAPTIONBARWIDTH, SIZE)
TM_PROP(1205, TMT, CAPTIONBARHEIGHT, SIZE)
TM_PROP(1206, TMT, SMCAPTIONBARWIDTH, SIZE)
TM_PROP(1207, TMT, SMCAPTIONBARHEIGHT, SIZE)
TM_PROP(1208, TMT, MENUBARWIDTH, SIZE)
TM_PROP(1209, TMT, MENUBARHEIGHT, SIZE)
//---- theme metrics: ints ----
#define TMT_FIRSTINT TMT_MINCOLORDEPTH
#define TMT_LASTINT TMT_MINCOLORDEPTH
TM_PROP(1301, TMT, MINCOLORDEPTH, INT)
//---- theme metrics: strings ----
#define TMT_FIRSTSTRING TMT_CSSNAME
#define TMT_LASTSTRING TMT_XMLNAME
TM_PROP(1401, TMT, CSSNAME, STRING)
TM_PROP(1402, TMT, XMLNAME, STRING)
//---- theme metrics: colors ----
#define TMT_FIRSTCOLOR TMT_SCROLLBAR
#define TMT_LASTCOLOR TMT_MENUBAR
TM_PROP(1601, TMT, SCROLLBAR, COLOR)
TM_PROP(1602, TMT, BACKGROUND, COLOR)
TM_PROP(1603, TMT, ACTIVECAPTION, COLOR)
TM_PROP(1604, TMT, INACTIVECAPTION, COLOR)
TM_PROP(1605, TMT, MENU, COLOR)
TM_PROP(1606, TMT, WINDOW, COLOR)
TM_PROP(1607, TMT, WINDOWFRAME, COLOR)
TM_PROP(1608, TMT, MENUTEXT, COLOR)
TM_PROP(1609, TMT, WINDOWTEXT, COLOR)
TM_PROP(1610, TMT, CAPTIONTEXT, COLOR)
TM_PROP(1611, TMT, ACTIVEBORDER, COLOR)
TM_PROP(1612, TMT, INACTIVEBORDER, COLOR)
TM_PROP(1613, TMT, APPWORKSPACE, COLOR)
TM_PROP(1614, TMT, HIGHLIGHT, COLOR)
TM_PROP(1615, TMT, HIGHLIGHTTEXT, COLOR)
TM_PROP(1616, TMT, BTNFACE, COLOR)
TM_PROP(1617, TMT, BTNSHADOW, COLOR)
TM_PROP(1618, TMT, GRAYTEXT, COLOR)
TM_PROP(1619, TMT, BTNTEXT, COLOR)
TM_PROP(1620, TMT, INACTIVECAPTIONTEXT, COLOR)
TM_PROP(1621, TMT, BTNHIGHLIGHT, COLOR)
TM_PROP(1622, TMT, DKSHADOW3D, COLOR)
TM_PROP(1623, TMT, LIGHT3D, COLOR)
TM_PROP(1624, TMT, INFOTEXT, COLOR)
TM_PROP(1625, TMT, INFOBK, COLOR)
TM_PROP(1626, TMT, BUTTONALTERNATEFACE, COLOR)
TM_PROP(1627, TMT, HOTTRACKING, COLOR)
TM_PROP(1628, TMT, GRADIENTACTIVECAPTION, COLOR)
TM_PROP(1629, TMT, GRADIENTINACTIVECAPTION, COLOR)
TM_PROP(1630, TMT, MENUHILIGHT, COLOR)
TM_PROP(1631, TMT, MENUBAR, COLOR)
//---- hue substitutions ----
TM_PROP(1801, TMT, FROMHUE1, INT)
TM_PROP(1802, TMT, FROMHUE2, INT)
TM_PROP(1803, TMT, FROMHUE3, INT)
TM_PROP(1804, TMT, FROMHUE4, INT)
TM_PROP(1805, TMT, FROMHUE5, INT)
TM_PROP(1806, TMT, TOHUE1, INT)
TM_PROP(1807, TMT, TOHUE2, INT)
TM_PROP(1808, TMT, TOHUE3, INT)
TM_PROP(1809, TMT, TOHUE4, INT)
TM_PROP(1810, TMT, TOHUE5, INT)
//---- color substitutions ----
TM_PROP(2001, TMT, FROMCOLOR1, COLOR)
TM_PROP(2002, TMT, FROMCOLOR2, COLOR)
TM_PROP(2003, TMT, FROMCOLOR3, COLOR)
TM_PROP(2004, TMT, FROMCOLOR4, COLOR)
TM_PROP(2005, TMT, FROMCOLOR5, COLOR)
TM_PROP(2006, TMT, TOCOLOR1, COLOR)
TM_PROP(2007, TMT, TOCOLOR2, COLOR)
TM_PROP(2008, TMT, TOCOLOR3, COLOR)
TM_PROP(2009, TMT, TOCOLOR4, COLOR)
TM_PROP(2010, TMT, TOCOLOR5, COLOR)
//---- rendering BOOL properties ----
TM_PROP(2201, TMT, TRANSPARENT, BOOL) // image has transparent areas (see TransparentColor)
TM_PROP(2202, TMT, AUTOSIZE, BOOL) // if TRUE, nonclient caption width varies with text extent
TM_PROP(2203, TMT, BORDERONLY, BOOL) // only draw the border area of the image
TM_PROP(2204, TMT, COMPOSITED, BOOL) // control will handle the composite drawing
TM_PROP(2205, TMT, BGFILL, BOOL) // if TRUE, TRUESIZE images should be drawn on bg fill
TM_PROP(2206, TMT, GLYPHTRANSPARENT, BOOL) // glyph has transparent areas (see GlyphTransparentColor)
TM_PROP(2207, TMT, GLYPHONLY, BOOL) // only draw glyph (not background)
TM_PROP(2208, TMT, ALWAYSSHOWSIZINGBAR, BOOL)
TM_PROP(2209, TMT, MIRRORIMAGE, BOOL) // default=TRUE means image gets mirrored in RTL (Mirror) windows
TM_PROP(2210, TMT, UNIFORMSIZING, BOOL) // if TRUE, height & width must be uniformly sized
TM_PROP(2211, TMT, INTEGRALSIZING, BOOL) // for TRUESIZE and Border sizing; if TRUE, factor must be integer
TM_PROP(2212, TMT, SOURCEGROW, BOOL) // if TRUE, will scale up src image when needed
TM_PROP(2213, TMT, SOURCESHRINK, BOOL) // if TRUE, will scale down src image when needed
//---- rendering INT properties ----
TM_PROP(2401, TMT, IMAGECOUNT, INT) // the number of state images in an imagefile
TM_PROP(2402, TMT, ALPHALEVEL, INT) // (0-255) alpha value for an icon (DrawThemeIcon part)
TM_PROP(2403, TMT, BORDERSIZE, INT) // the size of the border line for bgtype=BorderFill
TM_PROP(2404, TMT, ROUNDCORNERWIDTH, INT) // (0-100) % of roundness for rounded rects
TM_PROP(2405, TMT, ROUNDCORNERHEIGHT, INT) // (0-100) % of roundness for rounded rects
TM_PROP(2406, TMT, GRADIENTRATIO1, INT) // (0-255) - amt of gradient color 1 to use (all must total=255)
TM_PROP(2407, TMT, GRADIENTRATIO2, INT) // (0-255) - amt of gradient color 2 to use (all must total=255)
TM_PROP(2408, TMT, GRADIENTRATIO3, INT) // (0-255) - amt of gradient color 3 to use (all must total=255)
TM_PROP(2409, TMT, GRADIENTRATIO4, INT) // (0-255) - amt of gradient color 4 to use (all must total=255)
TM_PROP(2410, TMT, GRADIENTRATIO5, INT) // (0-255) - amt of gradient color 5 to use (all must total=255)
TM_PROP(2411, TMT, PROGRESSCHUNKSIZE, INT) // size of progress control chunks
TM_PROP(2412, TMT, PROGRESSSPACESIZE, INT) // size of progress control spaces
TM_PROP(2413, TMT, SATURATION, INT) // (0-255) amt of saturation for DrawThemeIcon() part
TM_PROP(2414, TMT, TEXTBORDERSIZE, INT) // size of border around text chars
TM_PROP(2415, TMT, ALPHATHRESHOLD, INT) // (0-255) the min. alpha value of a pixel that is solid
TM_PROP(2416, TMT, WIDTH, SIZE) // custom window prop: size of part (min. window)
TM_PROP(2417, TMT, HEIGHT, SIZE) // custom window prop: size of part (min. window)
TM_PROP(2418, TMT, GLYPHINDEX, INT) // for font-based glyphs, the char index into the font
TM_PROP(2419, TMT, TRUESIZESTRETCHMARK, INT) // stretch TrueSize image when target exceeds source by this percent
TM_PROP(2420, TMT, MINDPI1, INT) // min DPI ImageFile1 was designed for
TM_PROP(2421, TMT, MINDPI2, INT) // min DPI ImageFile1 was designed for
TM_PROP(2422, TMT, MINDPI3, INT) // min DPI ImageFile1 was designed for
TM_PROP(2423, TMT, MINDPI4, INT) // min DPI ImageFile1 was designed for
TM_PROP(2424, TMT, MINDPI5, INT) // min DPI ImageFile1 was designed for
//---- rendering FONT properties ----
TM_PROP(2601, TMT, GLYPHFONT, FONT) // the font that the glyph is drawn with
//---- rendering INTLIST properties ----
// start with 2801
// (from smallest to largest)
//---- rendering FILENAME properties ----
TM_PROP(3001, TMT, IMAGEFILE, FILENAME) // the filename of the image (or basename, for mult. images)
TM_PROP(3002, TMT, IMAGEFILE1, FILENAME) // multiresolution image file
TM_PROP(3003, TMT, IMAGEFILE2, FILENAME) // multiresolution image file
TM_PROP(3004, TMT, IMAGEFILE3, FILENAME) // multiresolution image file
TM_PROP(3005, TMT, IMAGEFILE4, FILENAME) // multiresolution image file
TM_PROP(3006, TMT, IMAGEFILE5, FILENAME) // multiresolution image file
TM_PROP(3007, TMT, STOCKIMAGEFILE, FILENAME) // These are the only images that you can call GetThemeBitmap on
TM_PROP(3008, TMT, GLYPHIMAGEFILE, FILENAME) // the filename for the glyph image
//---- rendering STRING properties ----
TM_PROP(3201, TMT, TEXT, STRING)
//---- rendering POSITION (x and y values) properties ----
TM_PROP(3401, TMT, OFFSET, POSITION) // for window part layout
TM_PROP(3402, TMT, TEXTSHADOWOFFSET, POSITION) // where char shadows are drawn, relative to orig. chars
TM_PROP(3403, TMT, MINSIZE, POSITION) // min dest rect than ImageFile was designed for
TM_PROP(3404, TMT, MINSIZE1, POSITION) // min dest rect than ImageFile1 was designed for
TM_PROP(3405, TMT, MINSIZE2, POSITION) // min dest rect than ImageFile2 was designed for
TM_PROP(3406, TMT, MINSIZE3, POSITION) // min dest rect than ImageFile3 was designed for
TM_PROP(3407, TMT, MINSIZE4, POSITION) // min dest rect than ImageFile4 was designed for
TM_PROP(3408, TMT, MINSIZE5, POSITION) // min dest rect than ImageFile5 was designed for
TM_PROP(3409, TMT, NORMALSIZE, POSITION) // size of dest rect that exactly source
//---- rendering MARGIN properties ----
TM_PROP(3601, TMT, SIZINGMARGINS, MARGINS) // margins used for 9-grid sizing
TM_PROP(3602, TMT, CONTENTMARGINS, MARGINS) // margins that define where content can be placed
TM_PROP(3603, TMT, CAPTIONMARGINS, MARGINS) // margins that define where caption text can be placed
//---- rendering COLOR properties ----
TM_PROP(3801, TMT, BORDERCOLOR, COLOR) // color of borders for BorderFill
TM_PROP(3802, TMT, FILLCOLOR, COLOR) // color of bg fill
TM_PROP(3803, TMT, TEXTCOLOR, COLOR) // color text is drawn in
TM_PROP(3804, TMT, EDGELIGHTCOLOR, COLOR) // edge color
TM_PROP(3805, TMT, EDGEHIGHLIGHTCOLOR, COLOR) // edge color
TM_PROP(3806, TMT, EDGESHADOWCOLOR, COLOR) // edge color
TM_PROP(3807, TMT, EDGEDKSHADOWCOLOR, COLOR) // edge color
TM_PROP(3808, TMT, EDGEFILLCOLOR, COLOR) // edge color
TM_PROP(3809, TMT, TRANSPARENTCOLOR, COLOR) // color of pixels that are treated as transparent (not drawn)
TM_PROP(3810, TMT, GRADIENTCOLOR1, COLOR) // first color in gradient
TM_PROP(3811, TMT, GRADIENTCOLOR2, COLOR) // second color in gradient
TM_PROP(3812, TMT, GRADIENTCOLOR3, COLOR) // third color in gradient
TM_PROP(3813, TMT, GRADIENTCOLOR4, COLOR) // forth color in gradient
TM_PROP(3814, TMT, GRADIENTCOLOR5, COLOR) // fifth color in gradient
TM_PROP(3815, TMT, SHADOWCOLOR, COLOR) // color of text shadow
TM_PROP(3816, TMT, GLOWCOLOR, COLOR) // color of glow produced by DrawThemeIcon
TM_PROP(3817, TMT, TEXTBORDERCOLOR, COLOR) // color of text border
TM_PROP(3818, TMT, TEXTSHADOWCOLOR, COLOR) // color of text shadow
TM_PROP(3819, TMT, GLYPHTEXTCOLOR, COLOR) // color that font-based glyph is drawn with
TM_PROP(3820, TMT, GLYPHTRANSPARENTCOLOR, COLOR) // color of transparent pixels in GlyphImageFile
TM_PROP(3821, TMT, FILLCOLORHINT, COLOR) // hint about fill color used (for custom controls)
TM_PROP(3822, TMT, BORDERCOLORHINT, COLOR) // hint about border color used (for custom controls)
TM_PROP(3823, TMT, ACCENTCOLORHINT, COLOR) // hint about accent color used (for custom controls)
//---- rendering enum properties (must be declared in TM_ENUM section above) ----
TM_PROP(4001, TMT, BGTYPE, ENUM) // basic drawing type for each part
TM_PROP(4002, TMT, BORDERTYPE, ENUM) // type of border for BorderFill parts
TM_PROP(4003, TMT, FILLTYPE, ENUM) // fill shape for BorderFill parts
TM_PROP(4004, TMT, SIZINGTYPE, ENUM) // how to size ImageFile parts
TM_PROP(4005, TMT, HALIGN, ENUM) // horizontal alignment for TRUESIZE parts & glyphs
TM_PROP(4006, TMT, CONTENTALIGNMENT, ENUM) // custom window prop: how text is aligned in caption
TM_PROP(4007, TMT, VALIGN, ENUM) // horizontal alignment for TRUESIZE parts & glyphs
TM_PROP(4008, TMT, OFFSETTYPE, ENUM) // how window part should be placed
TM_PROP(4009, TMT, ICONEFFECT, ENUM) // type of effect to use with DrawThemeIcon
TM_PROP(4010, TMT, TEXTSHADOWTYPE, ENUM) // type of shadow to draw with text
TM_PROP(4011, TMT, IMAGELAYOUT, ENUM) // how multiple images are arranged (horz. or vert.)
TM_PROP(4012, TMT, GLYPHTYPE, ENUM) // controls type of glyph in imagefile objects
TM_PROP(4013, TMT, IMAGESELECTTYPE, ENUM) // controls when to select from IMAGEFILE1...IMAGEFILE5
TM_PROP(4014, TMT, GLYPHFONTSIZINGTYPE, ENUM) // controls when to select a bigger/small glyph font size
TM_PROP(4015, TMT, TRUESIZESCALINGTYPE, ENUM) // controls how TrueSize image is scaled
//---- custom properties (used only by controls/shell) ----
TM_PROP(5001, TMT, USERPICTURE, BOOL)
TM_PROP(5002, TMT, DEFAULTPANESIZE, RECT)
TM_PROP(5003, TMT, BLENDCOLOR, COLOR)
END_TM_PROPS()
//---------------------------------------------------------------------------------------
// "Window" (i.e., non-client) Parts & States
//
// these cannot be renumbered (part of uxtheme API)
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(WINDOW)
TM_PART(1, WP, CAPTION)
TM_PART(2, WP, SMALLCAPTION)
TM_PART(3, WP, MINCAPTION)
TM_PART(4, WP, SMALLMINCAPTION)
TM_PART(5, WP, MAXCAPTION)
TM_PART(6, WP, SMALLMAXCAPTION)
TM_PART(7, WP, FRAMELEFT)
TM_PART(8, WP, FRAMERIGHT)
TM_PART(9, WP, FRAMEBOTTOM)
TM_PART(10, WP, SMALLFRAMELEFT)
TM_PART(11, WP, SMALLFRAMERIGHT)
TM_PART(12, WP, SMALLFRAMEBOTTOM)
//---- window frame buttons ----
TM_PART(13, WP, SYSBUTTON)
TM_PART(14, WP, MDISYSBUTTON)
TM_PART(15, WP, MINBUTTON)
TM_PART(16, WP, MDIMINBUTTON)
TM_PART(17, WP, MAXBUTTON)
TM_PART(18, WP, CLOSEBUTTON)
TM_PART(19, WP, SMALLCLOSEBUTTON)
TM_PART(20, WP, MDICLOSEBUTTON)
TM_PART(21, WP, RESTOREBUTTON)
TM_PART(22, WP, MDIRESTOREBUTTON)
TM_PART(23, WP, HELPBUTTON)
TM_PART(24, WP, MDIHELPBUTTON)
//---- scrollbars
TM_PART(25, WP, HORZSCROLL)
TM_PART(26, WP, HORZTHUMB)
TM_PART(27, WP, VERTSCROLL)
TM_PART(28, WP, VERTTHUMB)
//---- dialog ----
TM_PART(29, WP, DIALOG)
//---- hit-test templates ---
TM_PART(30, WP, CAPTIONSIZINGTEMPLATE)
TM_PART(31, WP, SMALLCAPTIONSIZINGTEMPLATE)
TM_PART(32, WP, FRAMELEFTSIZINGTEMPLATE)
TM_PART(33, WP, SMALLFRAMELEFTSIZINGTEMPLATE)
TM_PART(34, WP, FRAMERIGHTSIZINGTEMPLATE)
TM_PART(35, WP, SMALLFRAMERIGHTSIZINGTEMPLATE)
TM_PART(36, WP, FRAMEBOTTOMSIZINGTEMPLATE)
TM_PART(37, WP, SMALLFRAMEBOTTOMSIZINGTEMPLATE)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(FRAME)
TM_STATE(1, FS, ACTIVE)
TM_STATE(2, FS, INACTIVE)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(CAPTION)
TM_STATE(1, CS, ACTIVE)
TM_STATE(2, CS, INACTIVE)
TM_STATE(3, CS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(MAXCAPTION)
TM_STATE(1, MXCS, ACTIVE)
TM_STATE(2, MXCS, INACTIVE)
TM_STATE(3, MXCS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(MINCAPTION)
TM_STATE(1, MNCS, ACTIVE)
TM_STATE(2, MNCS, INACTIVE)
TM_STATE(3, MNCS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(HORZSCROLL)
TM_STATE(1, HSS, NORMAL)
TM_STATE(2, HSS, HOT)
TM_STATE(3, HSS, PUSHED)
TM_STATE(4, HSS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(HORZTHUMB)
TM_STATE(1, HTS, NORMAL)
TM_STATE(2, HTS, HOT)
TM_STATE(3, HTS, PUSHED)
TM_STATE(4, HTS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(VERTSCROLL)
TM_STATE(1, VSS, NORMAL)
TM_STATE(2, VSS, HOT)
TM_STATE(3, VSS, PUSHED)
TM_STATE(4, VSS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(VERTTHUMB)
TM_STATE(1, VTS, NORMAL)
TM_STATE(2, VTS, HOT)
TM_STATE(3, VTS, PUSHED)
TM_STATE(4, VTS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(SYSBUTTON)
TM_STATE(1, SBS, NORMAL)
TM_STATE(2, SBS, HOT)
TM_STATE(3, SBS, PUSHED)
TM_STATE(4, SBS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(MINBUTTON)
TM_STATE(1, MINBS, NORMAL)
TM_STATE(2, MINBS, HOT)
TM_STATE(3, MINBS, PUSHED)
TM_STATE(4, MINBS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(MAXBUTTON)
TM_STATE(1, MAXBS, NORMAL)
TM_STATE(2, MAXBS, HOT)
TM_STATE(3, MAXBS, PUSHED)
TM_STATE(4, MAXBS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(RESTOREBUTTON)
TM_STATE(1, RBS, NORMAL)
TM_STATE(2, RBS, HOT)
TM_STATE(3, RBS, PUSHED)
TM_STATE(4, RBS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(HELPBUTTON)
TM_STATE(1, HBS, NORMAL)
TM_STATE(2, HBS, HOT)
TM_STATE(3, HBS, PUSHED)
TM_STATE(4, HBS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(CLOSEBUTTON)
TM_STATE(1, CBS, NORMAL)
TM_STATE(2, CBS, HOT)
TM_STATE(3, CBS, PUSHED)
TM_STATE(4, CBS, DISABLED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Button" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(BUTTON)
TM_PART(1, BP, PUSHBUTTON)
TM_PART(2, BP, RADIOBUTTON)
TM_PART(3, BP, CHECKBOX)
TM_PART(4, BP, GROUPBOX)
TM_PART(5, BP, USERBUTTON)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(PUSHBUTTON)
TM_STATE(1, PBS, NORMAL)
TM_STATE(2, PBS, HOT)
TM_STATE(3, PBS, PRESSED)
TM_STATE(4, PBS, DISABLED)
TM_STATE(5, PBS, DEFAULTED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(RADIOBUTTON)
TM_STATE(1, RBS, UNCHECKEDNORMAL)
TM_STATE(2, RBS, UNCHECKEDHOT)
TM_STATE(3, RBS, UNCHECKEDPRESSED)
TM_STATE(4, RBS, UNCHECKEDDISABLED)
TM_STATE(5, RBS, CHECKEDNORMAL)
TM_STATE(6, RBS, CHECKEDHOT)
TM_STATE(7, RBS, CHECKEDPRESSED)
TM_STATE(8, RBS, CHECKEDDISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(CHECKBOX)
TM_STATE(1, CBS, UNCHECKEDNORMAL)
TM_STATE(2, CBS, UNCHECKEDHOT)
TM_STATE(3, CBS, UNCHECKEDPRESSED)
TM_STATE(4, CBS, UNCHECKEDDISABLED)
TM_STATE(5, CBS, CHECKEDNORMAL)
TM_STATE(6, CBS, CHECKEDHOT)
TM_STATE(7, CBS, CHECKEDPRESSED)
TM_STATE(8, CBS, CHECKEDDISABLED)
TM_STATE(9, CBS, MIXEDNORMAL)
TM_STATE(10, CBS, MIXEDHOT)
TM_STATE(11, CBS, MIXEDPRESSED)
TM_STATE(12, CBS, MIXEDDISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(GROUPBOX)
TM_STATE(1, GBS, NORMAL)
TM_STATE(2, GBS, DISABLED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Rebar" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(REBAR)
TM_PART(1, RP, GRIPPER)
TM_PART(2, RP, GRIPPERVERT)
TM_PART(3, RP, BAND)
TM_PART(4, RP, CHEVRON)
TM_PART(5, RP, CHEVRONVERT)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(CHEVRON)
TM_STATE(1, CHEVS, NORMAL)
TM_STATE(2, CHEVS, HOT)
TM_STATE(3, CHEVS, PRESSED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Toolbar" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(TOOLBAR)
TM_PART(1, TP, BUTTON)
TM_PART(2, TP, DROPDOWNBUTTON)
TM_PART(3, TP, SPLITBUTTON)
TM_PART(4, TP, SPLITBUTTONDROPDOWN)
TM_PART(5, TP, SEPARATOR)
TM_PART(6, TP, SEPARATORVERT)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(TOOLBAR)
TM_STATE(1, TS, NORMAL)
TM_STATE(2, TS, HOT)
TM_STATE(3, TS, PRESSED)
TM_STATE(4, TS, DISABLED)
TM_STATE(5, TS, CHECKED)
TM_STATE(6, TS, HOTCHECKED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Status" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(STATUS)
TM_PART(1, SP, PANE)
TM_PART(2, SP, GRIPPERPANE)
TM_PART(3, SP, GRIPPER)
END_TM_CLASS_PARTS()
//---------------------------------------------------------------------------------------
// "Menu" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(MENU)
TM_PART(1, MP, MENUITEM)
TM_PART(2, MP, MENUDROPDOWN)
TM_PART(3, MP, MENUBARITEM)
TM_PART(4, MP, MENUBARDROPDOWN)
TM_PART(5, MP, CHEVRON)
TM_PART(6, MP, SEPARATOR)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(MENU)
TM_STATE(1, MS, NORMAL)
TM_STATE(2, MS, SELECTED)
TM_STATE(3, MS, DEMOTED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "ListView" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(LISTVIEW)
TM_PART(1, LVP, LISTITEM)
TM_PART(2, LVP, LISTGROUP)
TM_PART(3, LVP, LISTDETAIL)
TM_PART(4, LVP, LISTSORTEDDETAIL)
TM_PART(5, LVP, EMPTYTEXT)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(LISTITEM)
TM_STATE(1, LIS, NORMAL)
TM_STATE(2, LIS, HOT)
TM_STATE(3, LIS, SELECTED)
TM_STATE(4, LIS, DISABLED)
TM_STATE(5, LIS, SELECTEDNOTFOCUS)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Header" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(HEADER)
TM_PART(1, HP, HEADERITEM)
TM_PART(2, HP, HEADERITEMLEFT)
TM_PART(3, HP, HEADERITEMRIGHT)
TM_PART(4, HP, HEADERSORTARROW)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(HEADERITEM)
TM_STATE(1, HIS, NORMAL)
TM_STATE(2, HIS, HOT)
TM_STATE(3, HIS, PRESSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(HEADERITEMLEFT)
TM_STATE(1, HILS, NORMAL)
TM_STATE(2, HILS, HOT)
TM_STATE(3, HILS, PRESSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(HEADERITEMRIGHT)
TM_STATE(1, HIRS, NORMAL)
TM_STATE(2, HIRS, HOT)
TM_STATE(3, HIRS, PRESSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(HEADERSORTARROW)
TM_STATE(1, HSAS, SORTEDUP)
TM_STATE(2, HSAS, SORTEDDOWN)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Progress" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(PROGRESS)
TM_PART(1, PP, BAR)
TM_PART(2, PP, BARVERT)
TM_PART(3, PP, CHUNK)
TM_PART(4, PP, CHUNKVERT)
END_TM_CLASS_PARTS()
//---------------------------------------------------------------------------------------
// "Tab" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(TAB)
TM_PART(1, TABP, TABITEM)
TM_PART(2, TABP, TABITEMLEFTEDGE)
TM_PART(3, TABP, TABITEMRIGHTEDGE)
TM_PART(4, TABP, TABITEMBOTHEDGE)
TM_PART(5, TABP, TOPTABITEM)
TM_PART(6, TABP, TOPTABITEMLEFTEDGE)
TM_PART(7, TABP, TOPTABITEMRIGHTEDGE)
TM_PART(8, TABP, TOPTABITEMBOTHEDGE)
TM_PART(9, TABP, PANE)
TM_PART(10, TABP, BODY)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(TABITEM)
TM_STATE(1, TIS, NORMAL)
TM_STATE(2, TIS, HOT)
TM_STATE(3, TIS, SELECTED)
TM_STATE(4, TIS, DISABLED)
TM_STATE(5, TIS, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TABITEMLEFTEDGE)
TM_STATE(1, TILES, NORMAL)
TM_STATE(2, TILES, HOT)
TM_STATE(3, TILES, SELECTED)
TM_STATE(4, TILES, DISABLED)
TM_STATE(5, TILES, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TABITEMRIGHTEDGE)
TM_STATE(1, TIRES, NORMAL)
TM_STATE(2, TIRES, HOT)
TM_STATE(3, TIRES, SELECTED)
TM_STATE(4, TIRES, DISABLED)
TM_STATE(5, TIRES, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TABITEMBOTHEDGES)
TM_STATE(1, TIBES, NORMAL)
TM_STATE(2, TIBES, HOT)
TM_STATE(3, TIBES, SELECTED)
TM_STATE(4, TIBES, DISABLED)
TM_STATE(5, TIBES, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TOPTABITEM)
TM_STATE(1, TTIS, NORMAL)
TM_STATE(2, TTIS, HOT)
TM_STATE(3, TTIS, SELECTED)
TM_STATE(4, TTIS, DISABLED)
TM_STATE(5, TTIS, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TOPTABITEMLEFTEDGE)
TM_STATE(1, TTILES, NORMAL)
TM_STATE(2, TTILES, HOT)
TM_STATE(3, TTILES, SELECTED)
TM_STATE(4, TTILES, DISABLED)
TM_STATE(5, TTILES, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TOPTABITEMRIGHTEDGE)
TM_STATE(1, TTIRES, NORMAL)
TM_STATE(2, TTIRES, HOT)
TM_STATE(3, TTIRES, SELECTED)
TM_STATE(4, TTIRES, DISABLED)
TM_STATE(5, TTIRES, FOCUSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TOPTABITEMBOTHEDGES)
TM_STATE(1, TTIBES, NORMAL)
TM_STATE(2, TTIBES, HOT)
TM_STATE(3, TTIBES, SELECTED)
TM_STATE(4, TTIBES, DISABLED)
TM_STATE(5, TTIBES, FOCUSED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Trackbar" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(TRACKBAR)
TM_PART(1, TKP, TRACK)
TM_PART(2, TKP, TRACKVERT)
TM_PART(3, TKP, THUMB)
TM_PART(4, TKP, THUMBBOTTOM)
TM_PART(5, TKP, THUMBTOP)
TM_PART(6, TKP, THUMBVERT)
TM_PART(7, TKP, THUMBLEFT)
TM_PART(8, TKP, THUMBRIGHT)
TM_PART(9, TKP, TICS)
TM_PART(10, TKP, TICSVERT)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(TRACKBAR)
TM_STATE(1, TKS, NORMAL)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TRACK)
TM_STATE(1, TRS, NORMAL)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TRACKVERT)
TM_STATE(1, TRVS, NORMAL)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(THUMB)
TM_STATE(1, TUS, NORMAL)
TM_STATE(2, TUS, HOT)
TM_STATE(3, TUS, PRESSED)
TM_STATE(4, TUS, FOCUSED)
TM_STATE(5, TUS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(THUMBBOTTOM)
TM_STATE(1, TUBS, NORMAL)
TM_STATE(2, TUBS, HOT)
TM_STATE(3, TUBS, PRESSED)
TM_STATE(4, TUBS, FOCUSED)
TM_STATE(5, TUBS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(THUMBTOP)
TM_STATE(1, TUTS, NORMAL)
TM_STATE(2, TUTS, HOT)
TM_STATE(3, TUTS, PRESSED)
TM_STATE(4, TUTS, FOCUSED)
TM_STATE(5, TUTS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(THUMBVERT)
TM_STATE(1, TUVS, NORMAL)
TM_STATE(2, TUVS, HOT)
TM_STATE(3, TUVS, PRESSED)
TM_STATE(4, TUVS, FOCUSED)
TM_STATE(5, TUVS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(THUMBLEFT)
TM_STATE(1, TUVLS, NORMAL)
TM_STATE(2, TUVLS, HOT)
TM_STATE(3, TUVLS, PRESSED)
TM_STATE(4, TUVLS, FOCUSED)
TM_STATE(5, TUVLS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(THUMBRIGHT)
TM_STATE(1, TUVRS, NORMAL)
TM_STATE(2, TUVRS, HOT)
TM_STATE(3, TUVRS, PRESSED)
TM_STATE(4, TUVRS, FOCUSED)
TM_STATE(5, TUVRS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TICS)
TM_STATE(1, TSS, NORMAL)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(TICSVERT)
TM_STATE(1, TSVS, NORMAL)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Tooltips" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(TOOLTIP)
TM_PART(1, TTP, STANDARD)
TM_PART(2, TTP, STANDARDTITLE)
TM_PART(3, TTP, BALLOON)
TM_PART(4, TTP, BALLOONTITLE)
TM_PART(5, TTP, CLOSE)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(CLOSE)
TM_STATE(1, TTCS, NORMAL)
TM_STATE(2, TTCS, HOT)
TM_STATE(3, TTCS, PRESSED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(STANDARD)
TM_STATE(1, TTSS, NORMAL)
TM_STATE(2, TTSS, LINK)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(BALLOON)
TM_STATE(1, TTBS, NORMAL)
TM_STATE(2, TTBS, LINK)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "TreeView" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(TREEVIEW)
TM_PART(1, TVP, TREEITEM)
TM_PART(2, TVP, GLYPH)
TM_PART(3, TVP, BRANCH)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(TREEITEM)
TM_STATE(1, TREIS, NORMAL)
TM_STATE(2, TREIS, HOT)
TM_STATE(3, TREIS, SELECTED)
TM_STATE(4, TREIS, DISABLED)
TM_STATE(5, TREIS, SELECTEDNOTFOCUS)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(GLYPH)
TM_STATE(1, GLPS, CLOSED)
TM_STATE(2, GLPS, OPENED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Spin" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(SPIN)
TM_PART(1, SPNP, UP)
TM_PART(2, SPNP, DOWN)
TM_PART(3, SPNP, UPHORZ)
TM_PART(4, SPNP, DOWNHORZ)
END_TM_CLASS_PARTS()
BEGIN_TM_PART_STATES(UP)
TM_STATE(1, UPS, NORMAL)
TM_STATE(2, UPS, HOT)
TM_STATE(3, UPS, PRESSED)
TM_STATE(4, UPS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(DOWN)
TM_STATE(1, DNS, NORMAL)
TM_STATE(2, DNS, HOT)
TM_STATE(3, DNS, PRESSED)
TM_STATE(4, DNS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(UPHORZ)
TM_STATE(1, UPHZS, NORMAL)
TM_STATE(2, UPHZS, HOT)
TM_STATE(3, UPHZS, PRESSED)
TM_STATE(4, UPHZS, DISABLED)
END_TM_PART_STATES()
BEGIN_TM_PART_STATES(DOWNHORZ)
TM_STATE(1, DNHZS, NORMAL)
TM_STATE(2, DNHZS, HOT)
TM_STATE(3, DNHZS, PRESSED)
TM_STATE(4, DNHZS, DISABLED)
END_TM_PART_STATES()
//---------------------------------------------------------------------------------------
// "Page" Parts & States
//---------------------------------------------------------------------------------------
BEGIN_TM_CLASS_PARTS(PAGE)
TM_PART(1, PGRP, UP)
TM_PART(2, PGRP, DOWN)
TM_PART(3, PGRP, UPHORZ)
TM_PART(4, PGRP, DOWNHORZ)