Export (0) Print
Expand All

Property Identifiers

This topic contains information about defined values that are used to retrieve properties of visual styles. The definitions are found in Vssym32.h.

Property Types

The following table lists the primitive property types. The values in the first column are not normally used by applications but provide a means of classifying property identifiers.

Data TypeDescriptionReturned TypeRetrieval Function
TMT_BOOLTRUE or FALSEBoolean GetThemeBool, GetThemeSysBool
TMT_COLORRGB color value COLORREF structure GetThemeColor, GetThemeSysColor
TMT_DISKSTREAMDisk streamHINSTANCE GetThemeStream
TMT_ENUMEnumerated valueEnumeration GetThemeEnumValue.
TMT_FILENAMEFilename relative to the theme directoryWCHAR array GetThemeFilename
TMT_FONTFont description LOGFONT structure GetThemeFont, GetThemeSysFont
TMT_HBITMAPBitmapHBITMAP handle GetThemeBitmap
TMT_INTSigned numberInteger GetThemeInt, GetThemeSysInt, GetThemeMetric
TMT_INTLISTList of integers INTLIST structure GetThemeIntList
TMT_MARGINSMargins: left, top, right, and bottom MARGINS structure GetThemeMargins
TMT_POSITIONLocation of an item POINT structure GetThemePosition
TMT_RECTSize and location of a rectangle RECT structure GetThemeRect
TMT_SIZESize of an item SIZE structure GetThemePartSize
TMT_STRINGUnicode stringWCHAR array GetThemeString, GetThemeSysString

 

Property IDs

The following are the defined values for theme properties, grouped by data type.

TMT_BOOL

IDNotes
TMT_ALWAYSSHOWSIZINGBARTRUE if the sizing bar associated with the part and state should always be shown.
TMT_AUTOSIZETRUE if the nonclient caption area associated with the part and state vary with text width.
TMT_BGFILLTRUE if true-sized images associated with the part and state are to be drawn on the background fill.
TMT_BORDERONLYTRUE if the image associated with the part and state should only have its border drawn.
TMT_COMPOSITEDTRUE if the control associated with the part and state will handle its own compositing of images.
TMT_COMPOSITEDOPAQUE
TMT_DRAWBORDERS
TMT_FLATMENUSSee GetThemeSysBool.
TMT_GLYPHONLYTRUE if the glyph associated with the part and state should be drawn without a background.
TMT_GLYPHTRANSPARENTTRUE if the glyph associated with the part and state have transparent areas. See GetThemeColor for the definition of the TMT_GLYPHCOLOR value that defines the transparent color.
TMT_INTEGRALSIZINGTRUE if the truesize image or border associated with the part and state must be sized to a factor of 2.
TMT_LOCALIZEDMIRRORIMAGE
TMT_MIRRORIMAGETRUE if the image associated with the part and state should be flipped if the window is being viewed in right-to-left reading mode.
TMT_NOETCHEDEFFECT
TMT_SCALEDBACKGROUND
TMT_SOURCEGROWTRUE if the image associated with the part and state will scale larger in size if necessary.
TMT_SOURCESHRINKTRUE if the image associated with the part and state will scale smaller in size if necessary.
TMT_TEXTAPPLYOVERLAY
TMT_TEXTGLOW
TMT_TEXTITALIC
TMT_TRANSPARENT
TMT_UNIFORMSIZINGTRUE if the image associated with the part and state must have equal height and width.
TMT_USERPICTURETRUE if the image associated with the part and state is based on the current user.

 

TMT_COLOR

IDNotes
TMT_ACCENTCOLORHINTThe color used as an accent color hint for custom controls.
TMT_ACTIVEBORDER
TMT_ACTIVECAPTION
TMT_APPWORKSPACE
TMT_BACKGROUND
TMT_BLENDCOLORThe color used as a blend color.
TMT_BODYTEXTCOLOR
TMT_BORDERCOLORThe color of the border associated with the part and state.
TMT_BORDERCOLORHINTThe color used as a border color hint for custom controls.
TMT_BTNFACE
TMT_BTNHIGHLIGHT
TMT_BTNSHADOW
TMT_BTNTEXT
TMT_BUTTONALTERNATEFACE
TMT_CAPTIONTEXT
TMT_DKSHADOW3D
TMT_EDGEDKSHADOWCOLORThe dark shadow color of the edge associated with this part and state.
TMT_EDGEFILLCOLORThe fill color of the edge associated with this part and state.
TMT_EDGEHIGHLIGHTCOLORThe highlight color of the edge associated with this part and state.
TMT_EDGELIGHTCOLORThe light color of the edge associated with this part and state.
TMT_EDGESHADOWCOLORThe shadow color of the edge associated with this part and state.
TMT_FILLCOLORThe color of the background fill associated with the part and state.
TMT_FILLCOLORHINTThe color used as a fill color hint for custom controls.
TMT_FROMCOLOR1
TMT_FROMCOLOR2
TMT_FROMCOLOR3
TMT_FROMCOLOR4
TMT_FROMCOLOR5
TMT_GLOWCOLORThe color of the glow produced by calling DrawThemeIcon using this part and state.
TMT_GLYPHTEXTCOLORThe color that the font-based glyph associated with this part and state will use.
TMT_GLYPHTRANSPARENTCOLORThe transparent glyph color associated with this part and state. If the TMT_GLYPHTRANSPARENT value for this part and state is TRUE, parts of the glyph that use this color are not drawn.
TMT_GRADIENTACTIVECAPTION
TMT_GRADIENTCOLOR1The first color of the gradient associated with this part and state.
TMT_GRADIENTCOLOR2The second color of the gradient.
TMT_GRADIENTCOLOR3The third color of the gradient.
TMT_GRADIENTCOLOR4The fourth color of the gradient.
TMT_GRADIENTCOLOR5The fifth color of the gradient.
TMT_GRADIENTINACTIVECAPTION
TMT_GRAYTEXT
TMT_HEADING1TEXTCOLOR
TMT_HEADING2TEXTCOLOR
TMT_HIGHLIGHT
TMT_HIGHLIGHTTEXT
TMT_HOTTRACKING
TMT_INACTIVEBORDER
TMT_INACTIVECAPTION
TMT_INACTIVECAPTIONTEXT
TMT_INFOBK
TMT_INFOTEXT
TMT_LIGHT3D
TMT_MENU
TMT_MENUBAR
TMT_MENUHILIGHT
TMT_MENUTEXT
TMT_SCROLLBAR
TMT_SHADOWCOLORThe color of the shadow drawn underneath text associated with this part and state.
TMT_TEXTBORDERCOLORThe color of the text border associated with this part and state.
TMT_TEXTCOLORThe color of the text associated with this part and state.
TMT_TEXTCOLORHINT
TMT_TEXTSHADOWCOLORThe color of the text shadow associated with this part and state.
TMT_TRANSPARENTCOLORThe transparent color associated with this part and state. If the TMT_TRANSPARENT value for this part and state is TRUE, parts of the graphic that use this color are not drawn.
TMT_WINDOW
TMT_WINDOWFRAME
TMT_WINDOWTEXT

 

TMT_DISKSTREAM

IDNotes
TMT_ATLASIMAGE

 

TMT_ENUM

EnumerationProperty ValuesNotes
BGTYPEBT_IMAGEFILE, BT_BORDERFILLThe basic drawing type for this part.
BORDERTYPEBT_RECT, BT_ROUNDRECT, BT_ELLIPSEThe type of border drawn if this part is a border fill.
CONTENTALIGNMENTCA_LEFT, CA_CENTER, CA_RIGHTThe alignment of text in the caption associated with this part.
FILLTYPEFT_SOLID, FT_VERTGRADIENT, FT_HORZGRADIENT, FT_RADIALGRADIENT, FT_TILEIMAGEThe type of fill shape drawn if this part is a border fill.
GLYPHTYPEGT_NONE, GT_IMAGEGLYPH, GT_FONTGLYPHThe type of glyph drawn on this part.
GLYPHFONTSIZINGTYPEGFST_NONE, GFST_SIZE, GFST_DPIThe type of method used to select between different-sized glyphs.
HALIGNHA_LEFT, HA_CENTER, HA_RIGHTThe horizontal alignment if this part uses a true-size image.
ICONEFFECTICE_NONE, ICE_GLOW, ICE_SHADOW, ICE_PULSE, ICE_ALPHAThe type of effect to be displayed when this part is drawn using DrawThemeIcon.
IMAGELAYOUTIL_VERTICAL, IL_HORIZONTALThe type of alignment used when multiple images are drawn.
IMAGESELECTTYPEIST_NONE, IST_SIZE, IST_DPIThe type of method used to select between sized images for this part. See the TMT_IMAGEFILE1 value of GetThemeFilename.
OFFSETTYPEOT_TOPLEFT, OT_TOPRIGHT, OT_TOPMIDDLE, OT_BOTTOMLEFT, OT_BOTTOMRIGHT, OT_BOTTOMMIDDLE, OT_MIDDLELEFT, OT_MIDDLERIGHT, OT_LEFTOFCAPTION, OT_RIGHTOFCAPTION, OT_LEFTOFLASTBUTTON, OT_RIGHTOFLASTBUTTON, OT_ABOVELASTBUTTON, OT_BELOWLASTBUTTONThe alignment of this part on the window.
SIZINGTYPEST_TRUESIZE, ST_STRETCH, ST_TILE, ST_TILEHORZ, ST_TILEVERT, ST_TILECENTERThe method used to size an image if this part uses an image file.
TEXTSHADOWTYPETST_NONE, TST_SINGLE, TST_CONTINUOUSThe type of shadow effect to draw behind text associated with this part.
TRUESIZESCALINGTYPETSST_NONE, TSST_SIZE, TSST_DPIThe type of scaling used if this part uses a true-sized image.
VALIGNVA_TOP, VA_CENTER, VA_BOTTOMThe vertical alignment if this part uses a true-size image.

 

TMT_FILENAME

IDNotes
TMT_GLYPHIMAGEFILEThe filename for the glyph image associated with this part and state.
TMT_IMAGEFILEThe filename of the image associated with this part and state, or the base filename for multiple images associated with this part and state.
TMT_IMAGEFILE1The filename of the first scaled image associated with this part and state, for support of different resolutions.
TMT_IMAGEFILE2The filename of the second scaled image.
TMT_IMAGEFILE3The filename of the third scaled image.
TMT_IMAGEFILE4The filename of the fourth scaled image.
TMT_IMAGEFILE5The filename of the fifth scaled image.

 

TMT_FONT

IDNotes
TMT_BODYFONT
TMT_CAPTIONFONT
TMT_GLYPHFONTThe font that the glyph associated with this part will be drawn with, if font-based glyphs are used.
TMT_HEADING1FONT
TMT_HEADING2FONT
TMT_ICONTITLEFONT
TMT_MENUFONT
TMT_MSGBOXFONT
TMT_SMALLCAPTIONFONT
TMT_STATUSFONT

 

TMT_INT

IDNotes
TMT_ALPHALEVELThe alpha value (0-255) used for DrawThemeIcon.
TMT_ALPHATHRESHOLDThe minimum alpha value (0-255) that a pixel must have to be considered opaque.
TMT_ANIMATIONDELAY
TMT_ANIMATIONDURATION
TMT_BORDERSIZEThe thickness of the border drawn if this part uses a border fill.
TMT_CHARSET
TMT_COLORIZATIONCOLOR
TMT_COLORIZATIONOPACITY
TMT_FRAMESPERSECOND
TMT_FROMHUE1
TMT_FROMHUE2
TMT_FROMHUE3
TMT_FROMHUE4
TMT_FROMHUE5
TMT_GLOWINTENSITY
TMT_GLYPHINDEXThe character index into the selected font that will be used for the glyph, if the part uses a font-based glyph.
TMT_GRADIENTRATIO1The amount of the first gradient color (TMT_GRADIENTCOLOR1) to use in drawing the part. This value can be from 0 to 255, but this value plus the values of each of the GRADIENTRATIO values must add up to 255.
TMT_GRADIENTRATIO2The amount of the second gradient color (TMT_GRADIENTCOLOR2) to use in drawing the part.
TMT_GRADIENTRATIO3The amount of the third gradient color (TMT_GRADIENTCOLOR3) to use in drawing the part.
TMT_GRADIENTRATIO4The amount of the fourth gradient color (TMT_GRADIENTCOLOR4) to use in drawing the part.
TMT_GRADIENTRATIO5The amount of the fifth gradient color (TMT_GRADIENTCOLOR5) to use in drawing the part.
TMT_HEIGHTThe height of the part.
TMT_IMAGECOUNTThe number of state images present in an image file.
TMT_MINCOLORDEPTH
TMT_MINDPI1The minimum dots per inch (dpi) that the first image file was designed for.
TMT_MINDPI2The minimum dpi that the second image file was designed for.
TMT_MINDPI3The minimum dpi that the third image file was designed for.
TMT_MINDPI4The minimum dpi that the fourth image file was designed for.
TMT_MINDPI5The minimum dpi that the fifth image file was designed for.
TMT_OPACITY
TMT_PIXELSPERFRAME
TMT_PROGRESSCHUNKSIZEThe size of the progress control "chunk" shapes that define how far an operation has progressed.
TMT_PROGRESSSPACESIZEThe total size of all of the progress control "chunks".
TMT_ROUNDCORNERHEIGHTThe roundness (0 to 100 percent) of the part's corners.
TMT_ROUNDCORNERWIDTHThe roundness (0 to 100 percent) of the part's corners.
TMT_SATURATIONThe amount of saturation (0-255) to apply to an icon drawn using DrawThemeIcon.
TMT_TEXTBORDERSIZEThe thickness of the border drawn around text characters.
TMT_TEXTGLOWSIZE
TMT_TOCOLOR1
TMT_TOCOLOR2
TMT_TOCOLOR3
TMT_TOCOLOR4
TMT_TOCOLOR5
TMT_TOHUE1
TMT_TOHUE2
TMT_TOHUE3
TMT_TOHUE4
TMT_TOHUE5
TMT_TRUESIZESTRETCHMARKThe percentage of a true-size image's original size at which the image will be stretched.
TMT_WIDTHThe width of the part.

 

TMT_INTLIST

IDNotes
TMT_TRANSITIONDURATIONS

 

TMT_MARGINS

IDNotes
TMT_CAPTIONMARGINSThe margins that define where caption text may be placed within a part.
TMT_CONTENTMARGINSThe margins that define where content may be placed within a part.
TMT_SIZINGMARGINSThe margins used for sizing a non-true-size image.

 

TMT_POSITION

IDNotes
TMT_MINSIZEThe minimum size that the normal image file can be used for before moving to the next smallest image file.
TMT_MINSIZE1The minimum size that the first small image file can be used for.
TMT_MINSIZE2The minimum size that the second small image file can be used for.
TMT_MINSIZE3The minimum size that the third small image file can be used for.
TMT_MINSIZE4The minimum size that the fourth small image file can be used for.
TMT_MINSIZE5The minimum size that the fifth small image file can be used for.
TMT_NORMALSIZEThe size of the normal image associated with this part.
TMT_OFFSETThe position offset from the alignment for this part. The alignment is defined by the TMT_OFFSETTYPE value.
TMT_TEXTSHADOWOFFSETThe offset from the text at which text shadows are drawn.

 

TMT_RECT

IDNotes
TMT_ANIMATIONBUTTONRECT
TMT_ATLASRECT
TMT_CUSTOMSPLITRECT
TMT_DEFAULTPANESIZEThe default size of the part.

 

TMT_SIZE

IDNotes
TMT_CAPTIONBARHEIGHTCaption bar height.
TMT_CAPTIONBARWIDTHCaption bar width.
TMT_MENUBARHEIGHTMenu bar height.
TMT_MENUBARWIDTHMenu bar width.
TMT_PADDEDBORDERWIDTHPadded border width.
TMT_SCROLLBARHEIGHTScroll bar height.
TMT_SCROLLBARWIDTHScroll bar width.
TMT_SIZINGBORDERWIDTHWidth of a sizing border.
TMT_SMCAPTIONBARHEIGHTCaption bar height.
TMT_SMCAPTIONBARWIDTHCaption bar width.

 

TMT_STRING

IDNotes
TMT_ALIAS
TMT_ATLASINPUTIMAGE
TMT_AUTHOR
TMT_CLASSICVALUE
TMT_COLORSCHEMES
TMT_COMPANY
TMT_COPYRIGHT
TMT_CSSNAMESee GetThemeSysString.
TMT_DESCRIPTION
TMT_DISPLAYNAME
TMT_LASTUPDATED
TMT_SIZES
TMT_TEXTThe text displayed by the part.
TMT_TOOLTIP
TMT_URL
TMT_VERSION
TMT_XMLNAMESee GetThemeSysString.
TMT_NAME

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft