GetThemeTextMetrics Function


This is preliminary documentation and is subject to change.

Retrieves information about the theme specified font for a particular part.

Syntax

HRESULT GetThemeTextMetrics(
    HTHEME hTheme, 
    HDC hdc, 
    int iPartId, 
    int iStateId, 
    TEXTMETRIC *ptm
);

Parameters

hTheme
Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.
hdc
Handle to a device context.
iPartId
Integer that specifies the part to retrieve font information about.
iStateId
Integer that specifies the state of the part.
ptm
[out] Pointer to a TEXTMETRIC structure that receives the font information.

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.