Funktionreferenz


_WinAPI_GetCurrentThemeName


Retrieves the name of the current visual styles, color scheme name, and size name

#include <WinAPITheme.au3>
_WinAPI_GetCurrentThemeName ( )

Parameter

None.

Rückgabewert

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.

Bemerkungen

None.

Siehe auch

Suche nach GetCurrentThemeName in der MSDN Bibliothek.

Beispiel

#include <APIThemeConstants.au3>
#include <WinAPITheme.au3>

Local $aData = _WinAPI_GetCurrentThemeName()
If IsArray($aData) Then
    ConsoleWrite('Datei:    ' & $aData[0] & @CRLF)
    ConsoleWrite('Farbe:   ' & $aData[1] & @CRLF)
    ConsoleWrite('Größe:    ' & $aData[2] & @CRLF)
    ConsoleWrite('Name:    ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_CANONICALNAME) & @CRLF)
    ConsoleWrite('Anzeige: ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_DISPLAYNAME) & @CRLF)
    ConsoleWrite('Tooltip: ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_TOOLTIP) & @CRLF)
    ConsoleWrite('Autor:  ' & _WinAPI_GetThemeDocumentationProperty($aData[0], $SZ_THDOCPROP_AUTHOR) & @CRLF)
EndIf