Retrieves the name of the current visual styles, color scheme name, and size name
#include <WinAPITheme.au3>
_WinAPI_GetCurrentThemeName ( )
Success: | The array that contains the following information: [0] - The theme path and file name. [1] - The color scheme name. [2] - The size name. |
Failure: | Set the @error flag to non-zero, @extended flag may contain the HRESULT error code. |
Search GetCurrentThemeName in MSDN Library.
#include <APIThemeConstants.au3>
#include <WinAPITheme.au3>
Local $aData = _WinAPI_GetCurrentThemeName()
If IsArray($aData) Then
ConsoleWrite('File: ' & $aData[0] & @CRLF)
ConsoleWrite('Color: ' & $aData[1] & @CRLF)
ConsoleWrite('Size: ' & $aData[2] & @CRLF)
ConsoleWrite('Name: ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_CANONICALNAME) & @CRLF)
ConsoleWrite('Display: ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_DISPLAYNAME) & @CRLF)
ConsoleWrite('Tooltip: ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_TOOLTIP) & @CRLF)
ConsoleWrite('Author: ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_AUTHOR) & @CRLF)
EndIf