Compartir a través de


GetTextMetrics (Windows CE 5.0)

Send Feedback

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

BOOLGetTextMetrics(HDChdc, LPTEXTMETRIClptm);

Parameters

  • hdc
    [in] Handle to the device context (DC).
  • lptm
    [out] Long pointer to the TEXTMETRIC structure that receives 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 do not necessarily match the text metric values on Windows-based desktop platforms.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

GetTextFace | TEXTMETRIC

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.