CDC::GetTextExtentPointI

Retrieves the width and height of the specified array of glyph indices.

BOOL GetTextExtentPointI(
   LPWORD pgiIn,
   int cgi,
   LPSIZE lpSize
) const;

Parameters

  • pgiIn
    A pointer to an array of glyph indices for which extents are to be retrieved.

  • cgi
    Specifies the number of glyphs in the array pointed to by pgiIn.

  • lpSize
    Pointer to a SIZE structure that receives the dimensions of the glyph indices array, in logical units. This value cannot be NULL.

Return Value

Nonzero if the function is successful; otherwise 0.

Remarks

This member function emulates the functionality of the function GetTextExtentPointI, as described in the Windows SDK.

Requirements

Header: afxwin.h

See Also

Concepts

CDC Class

CDC Members

Hierarchy Chart

CDC::GetTextExtentExPointI