Gdi::GetTextMetricsW_I

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

static WINGDIAPI BOOL WINAPI etTextMetricsW_I(
  HDC hdc,
  TEXTMETRIC* lptm
);

Parameters

  • hdc
    [in] Handle to the device context.
  • 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

This method is an internal version of the GetTextMetrics function.

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

GetTextMetrics | Gdi::GetTextFaceW_I | TEXTMETRIC

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.