GetThemeString Function


This is preliminary documentation and is subject to change.

Retrieves the value of a specified STRING property.

Syntax

HRESULT GetThemeString(
    HTHEME hTheme, 
    int iPartId, 
    int iStateId, 
    int iPropId, 
    LPWSTR pstrBuff, 
    DWORD dwMaxBuffChars
);

Parameters

hTheme
Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
iPartId
Integer that specifies the part which contains the STRING property.
iStateId
Integer that specifies the state of the part.
iPropId
Integer that specifies the property to retrieve.
pstrBuff
[out] Pointer to an buffer that receives the string value.
dwMaxBuffChars
DWORD that specifies the maximum number of characters the buffer can contain.

Return Value

Returns S_OK if successful, or an error value otherwise.

Function Information

Stock ImplementationUxTheme.dll
Custom ImplementationNo
HeaderThemeApi.h
Import libraryUxTheme.lib
Minimum operating systems Windows NT Whistler


© 2000 Microsoft Corporation. All rights reserved. Terms of use.