CDC::GetOutputTextMetrics

Retrieves the metrics for the current font using m_hDC, the output device context.

BOOL GetOutputTextMetrics(
   LPTEXTMETRIC lpMetrics 
) const;

Parameters

  • lpMetrics
    Points to the TEXTMETRIC structure that receives the metrics.

Return Value

Nonzero if the function is successful; otherwise 0.

Requirements

Header: afxwin.h

See Also

Reference

CDC Class

Hierarchy Chart

CDC::GetTextAlign

CDC::m_hAttribDC

CDC::m_hDC

CDC::GetTextMetrics

CDC::GetTextExtent

CDC::GetTextFace

CDC::SetTextJustification

GetTextMetrics

Other Resources

CDC Members