User Experience Themes Functions


This is preliminary documentation and is subject to change.

This section describes the functions associated with User Experience Themes.

CloseThemeData Closes the theme data handle.
DrawThemeBackground Draws the theme-defined background image for the specified control part.
DrawThemeBorder Draws the theme-defined border within a specified rectangle.
DrawThemeIcon Draws an image from an image list with the theme-defined icon effect.
DrawThemeLine Draws a theme-defined line within a specified rectangle.
DrawThemeText Draws the text using the theme-defined color and font.
GetThemeBackgroundContentRect Retrieves the size of the content area for the theme-defined background.
GetThemeBackgroundExtent Calculates the size and location of the theme-defined background given the content area.
GetThemeBackgroundRegion Computes the region for a regular or partially transparent background that is bounded by a specified rectangle.
GetThemeBool Retrieves the value of a specified BOOL property.
GetThemeColor Retrieves the value of a specified COLOR property.
GetThemeEnumValue Retrieves the value of a specified ENUM property.
GetThemeFilename Retrieves the value of a specified COLOR property.
GetThemeFont Retrieves the value of a specified RECT property.
GetThemeInt Retrieves the value of a specified INT property.
GetThemeMargins Retrieves the value of a specified RECT property.
GetThemeMetric Retrieves the value of a specified METRIC property.
GetThemePartSize Calculates the original size of the theme-defined part.
GetThemePosition Retrieves the value of a specified POSITION property.
GetThemePropertyOrigin Retrieves the location of the theme property definition for the specified property.
GetThemeRect Retrieves the value of a specified RECT property.
GetThemeString Retrieves the value of a specified STRING property.
GetThemeTextExtent Calculates the size and location of the specified text when rendered in the theme font.
GetThemeTextMetrics Retrieves information about the theme specified font for a particular part.
HitTestThemeBackground Retrieves a hit test code for a point within the theme specified background.
IsThemeActive Tests if a theme is active.
IsThemeBackgroundPartiallyTransparent Retrieves whether the theme-specified background has transparent pieces or alpha-blended pieces.
IsThemePartDefined Retrieves whether a theme has defined parameters for the specified part and state.
OpenThemeData Opens the theme data for the specified window and its associated class.
SetWindowTheme Causes an existing window to use a different set of theme information than its class normally uses.


© 2000 Microsoft Corporation. All rights reserved. Terms of use.