Opens the theme data for the specified window and its associated class.
Syntax
HTHEME OpenThemeData( HWND hwnd, LPCWSTR pstrClassList );
Parameters
- hwnd
- Handle of the window for which theme data is required.
- pstrClassList
- Pointer to a string that contains a semicolon-separated list of classes.
Return Value
OpenThemeData tries to match each class, one at a time, to a class data section in the currently active theme. If a match is found, an associated HTHEME handle is returned. If no match is found NULL is returned.
Function Information
Stock Implementation UxTheme.dll Custom Implementation No Header ThemeApi.h Import library UxTheme.lib Minimum operating systems Windows NT Whistler