CDC::GetTextMetrics

Retrieves the metrics for the current font using the attribute device context.

BOOL GetTextMetrics(
   LPTEXTMETRIC lpMetrics 
) const;

Параметры

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

Возвращаемое значение

Nonzero if the function is successful; otherwise 0.

Требования

Header: afxwin.h

См. также

Основные понятия

CDC Class

CDC Members

Hierarchy Chart

CDC::GetTextAlign

CDC::m_hAttribDC

CDC::m_hDC

CDC::GetOutputTextMetrics

CDC::GetTextExtent

CDC::GetTextFace

CDC::SetTextJustification

GetTextMetrics