GetTextMetrics (Windows CE 5.0)

Send Feedback

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

BOOLGetTextMetrics(HDChdc, LPTEXTMETRIClptm);


  • 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.


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


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

See Also


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.