GetThemePartSize Function


This is preliminary documentation and is subject to change.

Calculates the original size of the theme-defined part.

Syntax

HRESULT GetThemePartSize(
    HTHEME hTheme, 
    int iPartId, 
    int iStateId, 
    SIZE *psz
);

Parameters

hTheme
Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
iPartId
Integer that specifies the part to calculate the size of.
iStateId
Integer that specifies the state of the part.
psz
[in] Pointer to a SIZE structure that receives the dimensions of the specified part.

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.