CDC::GetTextMetrics

Syntax

BOOL GetTextMetrics( LPTEXTMETRIC lpMetrics ) const;

Parameters

lpMetrics

Points to the TEXTMETRIC structure that receives the metrics.

Remarks

Retrieves the metrics for the current font.

Return Value

TRUE if the function is successful; otherwise FALSE.

See Also

CDC::GetTextAlign, CDC::GetTextExtent, CDC::GetTextFace, CDC::SetTextJustification, ::GetTextMetrics