Funktionreferenz


_WinAPI_GetThemeDocumentationProperty


Retrieves the value for a theme property from the documentation section of the specified theme file

#include <WinAPITheme.au3>
_WinAPI_GetThemeDocumentationProperty ( $sFilePath, $sProperty )

Parameter

$sFilePath The name of the theme file that will be opened to query for the property.
$sProperty The name of the theme property to query. This parameter can be one of the following values.
$SZ_THDOCPROP_AUTHOR
$SZ_THDOCPROP_CANONICALNAME
$SZ_THDOCPROP_DISPLAYNAME
$SZ_THDOCPROP_TOOLTIP

Rückgabewert

Success: The property string value.
Failure: Sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Bemerkungen

None.

Siehe auch

Suche nach GetThemeDocumentationProperty 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