GetWindowTheme function
Retrieves a theme handle to a window that has visual styles applied.
Syntax
HTHEME GetWindowTheme( _In_ HWND hWnd );
Parameters
- hWnd [in]
-
Type: HWND
Handle of the window.
Return value
Type: HTHEME
The most recent theme handle from OpenThemeData.
Remarks
If a window has a visual style applied, the GetWindowTheme function returns the most recent theme handle from OpenThemeData. If no visual style is applied, GetWindowTheme returns NULL.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 10/27/2012