uxtheme topic
User Theming APIs
Handles user experience theming and visual styles.
Functions
-
CloseThemeData(
int hTheme) → int uxtheme - Closes the theme data handle.
-
CloseThemeData(
int hTheme) → int uxtheme - Closes the theme data handle.
-
DrawThemeBackground(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> pRect, Pointer<RECT> pClipRect) → int - Draws the border and fill defined by the visual style for the specified control part.
-
DrawThemeBackground(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> pRect, Pointer<RECT> pClipRect) → int - Draws the border and fill defined by the visual style for the specified control part.
-
DrawThemeEdge(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> pDestRect, int uEdge, int uFlags, Pointer<RECT> pContentRect) → int - Draws one or more edges defined by the visual style of a rectangle.
-
DrawThemeEdge(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> pDestRect, int uEdge, int uFlags, Pointer<RECT> pContentRect) → int - Draws one or more edges defined by the visual style of a rectangle.
-
DrawThemeIcon(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> pRect, int himl, int iImageIndex) → int - Draws an image from an image list with the icon effect defined by the visual style.
-
DrawThemeIcon(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> pRect, int himl, int iImageIndex) → int - Draws an image from an image list with the icon effect defined by the visual style.
-
DrawThemeParentBackground(
int hwnd, int hdc, Pointer< uxthemeRECT> prc) → int - Draws the part of a parent control that is covered by a partially-transparent or alpha-blended child control.
-
DrawThemeParentBackground(
int hwnd, int hdc, Pointer< uxthemeRECT> prc) → int - Draws the part of a parent control that is covered by a partially-transparent or alpha-blended child control.
-
DrawThemeParentBackgroundEx(
int hwnd, int hdc, int dwFlags, Pointer< uxthemeRECT> prc) → int - Used by partially-transparent or alpha-blended child controls to draw the part of their parent in front of which they appear. Sends a WM_ERASEBKGND message followed by a WM_PRINTCLIENT.
-
DrawThemeParentBackgroundEx(
int hwnd, int hdc, int dwFlags, Pointer< uxthemeRECT> prc) → int - Used by partially-transparent or alpha-blended child controls to draw the part of their parent in front of which they appear. Sends a WM_ERASEBKGND message followed by a WM_PRINTCLIENT.
-
DrawThemeTextEx(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeUtf16> pszText, int cchText, int dwTextFlags, Pointer<RECT> pRect, Pointer<DTTOPTS> pOptions) → int - Draws text using the color and font defined by the visual style.
-
DrawThemeTextEx(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeUtf16> pszText, int cchText, int dwTextFlags, Pointer<RECT> pRect, Pointer<DTTOPTS> pOptions) → int - Draws text using the color and font defined by the visual style.
-
EnableThemeDialogTexture(
int hwnd, int dwFlags) → int uxtheme - Enables or disables the visual style of the background of a dialog window.
-
EnableThemeDialogTexture(
int hwnd, int dwFlags) → int uxtheme - Enables or disables the visual style of the background of a dialog window.
-
GetCurrentThemeName(
Pointer< uxthemeUtf16> pszThemeFileName, int cchMaxNameChars, Pointer<Utf16> pszColorBuff, int cchMaxColorChars, Pointer<Utf16> pszSizeBuff, int cchMaxSizeChars) → int - Retrieves the name of the current visual style, and optionally retrieves the color scheme name and size name.
-
GetCurrentThemeName(
Pointer< uxthemeUtf16> pszThemeFileName, int cchMaxNameChars, Pointer<Utf16> pszColorBuff, int cchMaxColorChars, Pointer<Utf16> pszSizeBuff, int cchMaxSizeChars) → int - Retrieves the name of the current visual style, and optionally retrieves the color scheme name and size name.
-
GetThemeMetric(
int hTheme, int hdc, int iPartId, int iStateId, int iPropId, Pointer< uxthemeInt32> piVal) → int - Retrieves the value of a metric property.
-
GetThemeMetric(
int hTheme, int hdc, int iPartId, int iStateId, int iPropId, Pointer< uxthemeInt32> piVal) → int - Retrieves the value of a metric property.
-
GetThemePartSize(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> prc, int eSize, Pointer<SIZE> psz) → int - Calculates the original size of the part defined by a visual style.
-
GetThemePartSize(
int hTheme, int hdc, int iPartId, int iStateId, Pointer< uxthemeRECT> prc, int eSize, Pointer<SIZE> psz) → int - Calculates the original size of the part defined by a visual style.
-
GetThemeRect(
int hTheme, int iPartId, int iStateId, int iPropId, Pointer< uxthemeRECT> pRect) → int - Retrieves the value of a RECT property.
-
GetThemeRect(
int hTheme, int iPartId, int iStateId, int iPropId, Pointer< uxthemeRECT> pRect) → int - Retrieves the value of a RECT property.
-
GetThemeSysColor(
int hTheme, int iColorId) → int uxtheme - Retrieves the value of a system color.
-
GetThemeSysColor(
int hTheme, int iColorId) → int uxtheme - Retrieves the value of a system color.
-
GetThemeSysColorBrush(
int hTheme, int iColorId) → int uxtheme - Retrieves a system color brush.
-
GetThemeSysColorBrush(
int hTheme, int iColorId) → int uxtheme - Retrieves a system color brush.
-
GetThemeSysFont(
int hTheme, int iFontId, Pointer< uxthemeLOGFONT> plf) → int - Retrieves the LOGFONT of a system font.
-
GetThemeSysFont(
int hTheme, int iFontId, Pointer< uxthemeLOGFONT> plf) → int - Retrieves the LOGFONT of a system font.
-
GetThemeSysSize(
int hTheme, int iSizeId) → int uxtheme - Retrieves the value of a system size metric from theme data.
-
GetThemeSysSize(
int hTheme, int iSizeId) → int uxtheme - Retrieves the value of a system size metric from theme data.
-
GetWindowTheme(
int hwnd) → int uxtheme - Retrieves a theme handle to a window that has visual styles applied.
-
GetWindowTheme(
int hwnd) → int uxtheme - Retrieves a theme handle to a window that has visual styles applied.
-
IsAppThemed(
) → int uxtheme - Reports whether the current application's user interface displays using visual styles.
-
IsAppThemed(
) → int uxtheme - Reports whether the current application's user interface displays using visual styles.
-
IsCompositionActive(
) → int uxtheme - Determines whether Desktop Window Manager (DWM) composition effects are available to the theme.
-
IsCompositionActive(
) → int uxtheme - Determines whether Desktop Window Manager (DWM) composition effects are available to the theme.
-
IsThemeActive(
) → int uxtheme - Tests if a visual style for the current application is active.
-
IsThemeActive(
) → int uxtheme - Tests if a visual style for the current application is active.
-
IsThemeBackgroundPartiallyTransparent(
int hTheme, int iPartId, int iStateId) → int uxtheme - Retrieves whether the background specified by the visual style has transparent pieces or alpha-blended pieces.
-
IsThemeBackgroundPartiallyTransparent(
int hTheme, int iPartId, int iStateId) → int uxtheme - Retrieves whether the background specified by the visual style has transparent pieces or alpha-blended pieces.
-
IsThemeDialogTextureEnabled(
int hwnd) → int uxtheme - Reports whether a specified dialog window supports background texturing.
-
IsThemeDialogTextureEnabled(
int hwnd) → int uxtheme - Reports whether a specified dialog window supports background texturing.
-
IsThemePartDefined(
int hTheme, int iPartId, int iStateId) → int uxtheme - Retrieves whether a visual style has defined parameters for the specified part and state.
-
IsThemePartDefined(
int hTheme, int iPartId, int iStateId) → int uxtheme - Retrieves whether a visual style has defined parameters for the specified part and state.
-
OpenThemeData(
int hwnd, Pointer< uxthemeUtf16> pszClassList) → int - Opens the theme data for a window and its associated class.
-
OpenThemeData(
int hwnd, Pointer< uxthemeUtf16> pszClassList) → int - Opens the theme data for a window and its associated class.
-
OpenThemeDataEx(
int hwnd, Pointer< uxthemeUtf16> pszClassList, int dwFlags) → int - Opens the theme data associated with a window for specified theme classes.
-
OpenThemeDataEx(
int hwnd, Pointer< uxthemeUtf16> pszClassList, int dwFlags) → int - Opens the theme data associated with a window for specified theme classes.
-
OpenThemeDataForDpi(
int hwnd, Pointer< uxthemeUtf16> pszClassList, int dpi) → int - A variant of OpenThemeData that opens a theme handle associated with a specific DPI.
-
OpenThemeDataForDpi(
int hwnd, Pointer< uxthemeUtf16> pszClassList, int dpi) → int - A variant of OpenThemeData that opens a theme handle associated with a specific DPI.
-
SetThemeAppProperties(
int dwFlags) → void uxtheme - Sets the flags that determine how visual styles are implemented in the calling application.
-
SetThemeAppProperties(
int dwFlags) → void uxtheme - Sets the flags that determine how visual styles are implemented in the calling application.
-
SetWindowTheme(
int hwnd, Pointer< uxthemeUtf16> pszSubAppName, Pointer<Utf16> pszSubIdList) → int - Causes a window to use a different set of visual style information than its class normally uses.
-
SetWindowTheme(
int hwnd, Pointer< uxthemeUtf16> pszSubAppName, Pointer<Utf16> pszSubIdList) → int - Causes a window to use a different set of visual style information than its class normally uses.
-
SetWindowThemeAttribute(
int hwnd, int eAttribute, Pointer< uxthemeNativeType> pvAttribute, int cbAttribute) → int - Sets attributes to control how visual styles are applied to a specified window.
-
SetWindowThemeAttribute(
int hwnd, int eAttribute, Pointer< uxthemeNativeType> pvAttribute, int cbAttribute) → int - Sets attributes to control how visual styles are applied to a specified window.
-
SetWindowThemeNonClientAttributes(
int hwnd, int dwMask, int dwAttributes) → int uxtheme - Sets attributes to control how visual styles are applied to a specified window.
-
SetWindowThemeNonClientAttributes(
int hwnd, int dwMask, int dwAttributes) → int uxtheme - Sets attributes to control how visual styles are applied to a specified window.