Skip to content

Latest commit

 

History

History
95 lines (70 loc) · 2.79 KB

nf-uxtheme-getthemetextmetrics.md

File metadata and controls

95 lines (70 loc) · 2.79 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:uxtheme.GetThemeTextMetrics
GetThemeTextMetrics function (uxtheme.h)
Retrieves information about the font specified by a visual style for a particular part.
GetThemeTextMetrics
GetThemeTextMetrics function [Windows Controls]
controls.GetThemeTextMetrics
controls.inet_GetThemeTextMetrics
inet_GetThemeTextMetrics
inet_GetThemeTextMetrics_cpp
uxtheme/GetThemeTextMetrics
controls\GetThemeTextMetrics.htm
Controls
VS|Controls|~\controls\userex\functions\getthemetextmetrics.htm
12/05/2018
GetThemeTextMetrics, GetThemeTextMetrics function [Windows Controls], controls.GetThemeTextMetrics, controls.inet_GetThemeTextMetrics, inet_GetThemeTextMetrics, inet_GetThemeTextMetrics_cpp, uxtheme/GetThemeTextMetrics
uxtheme.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
UxTheme.lib
UxTheme.dll
Windows
19H1
GetThemeTextMetrics
uxtheme/GetThemeTextMetrics
c++
APIRef
kbSyntax
DllExport
UxTheme.dll
GetThemeTextMetrics

GetThemeTextMetrics function

-description

Retrieves information about the font specified by a visual style for a particular part.

-parameters

-param hTheme [in]

Type: HTHEME

Handle to a window's specified theme data. Use OpenThemeData to create an HTHEME.

-param hdc [in]

Type: HDC

HDC to use for screen context. This parameter may be set to NULL.

-param iPartId [in]

Type: int

Value of type int that specifies the part to retrieve font information about. See Parts and States.

-param iStateId [in]

Type: int

Value of type int that specifies the state of the part. See Parts and States.

-param ptm [out]

Type: TEXTMETRIC*

Receives the font information.

-returns

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-see-also

Property Identifiers