Export (0) Print
Expand All
Expand Minimize

CDC::GetCharWidthI

Retrieves the widths, in logical coordinates, of consecutive glyph indices in a specified range from the current font.

BOOL GetCharWidthI( 
   UINT giFirst, 
   UINT cgi, 
   LPWORD pgi, 
   LPINT lpBuffer 
) const;

giFirst

Specifies the first glyph index in the group of consecutive glyph indices from the current font. This parameter is only used if the pgi parameter is NULL.

cgi

Specifies the number of glyph indices.

pgi

A pointer to an array containing glyph indices. If the value is NULL, the giFirst parameter is used instead. The cgi parameter specifies the number of glyph indices in this array.

lpBuffer

A pointer to a buffer that receives the widths.

Nonzero if the function is successful; otherwise 0.

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

Header: afxwin.h

Show:
© 2014 Microsoft