SetTextCharacterExtra

  int SetTextCharacterExtra(hdc, nCharExtra)    
  HDC hdc;    
  int nCharExtra;    

The SetTextCharacterExtra function sets the amount of intercharacter spacing. This spacing is added to each character, including break characters, when it writes a line of text to the device context.

Parameters

hdc

Identifies the device context.

nCharExtra

Specifies the amount of extra space (in logical units) to be added to each character. If the current mapping mode is not MM_TEXT, the nCharExtra parameter is transformed and rounded to the nearest pixel.

Return Value

The return value specifies the amount of the previous intercharacter spacing.