GetTextMetrics

GetTextMetrics (Compact 2013)

3/28/2014

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


BOOL GetTextMetrics(
  HDC hdc, 
  LPTEXTMETRIC lptm
); 

hdc

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

lptm

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

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

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

Header

windows.h

Library

coredll.lib

Show:
© 2016 Microsoft