The SetTextCharacterExtra function sets the intercharacter spacing. Intercharacter spacing is added to each character, including break characters, when Windows writes a line of text.
int SetTextCharacterExtra(
HDC hdc, |
// handle of device context |
int nCharExtra |
// extra-space value |
); |
If the function succeeds, the return value is the previous intercharacter spacing.
If the function fails, the return value is 0x80000000. To get extended error information, call GetLastError.