Click to Rate and Give Feedback
MSDN
MSDN Library
Fonts
Fonts Reference
Fonts Functions
 GetTextMetrics
Collapse All/Expand All Collapse All
GetTextMetrics
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

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 CE do not necessarily match the text metric values on Windows-based desktop platforms.

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobilePocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker