Partager via


AFX_GLOBAL_DATA::GetTextHeight

Retrieves the height of text characters in the current font.

int GetTextHeight(
   BOOL bHorz = TRUE
);

Parameters

  • [in] bHorz
    TRUE to retrieve the height of characters when text runs horizontally; FALSE to retrieve the height of characters when text runs vertically. The default value is TRUE.

Return Value

The height of the current font, which is measured from its ascender to its descender.

Requirements

Header:

See Also

Reference

AFX_GLOBAL_DATA Structure

Hierarchy Chart