GetTextMetrics

This function fills the specified buffer with the metrics for the currently selected font.

At a Glance

Header file: Wingdi.h
Windows CE versions: 1.0 and later

Syntax

BOOL GetTextMetrics(HDC hdc, LPTEXTMETRIC lptm);

Parameters

hdc

[in] Handle to the device context (DC).

lptm

[out] Long pointer to the TEXTMETRIC structure that is to receive the metrics.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

For any given font, the text metric values in Windows CE will not necessarily match the text metric values in Windows-based desktop platforms.

See Also

GetTextFace,TEXTMETRIC