In my custom control I avoid WM_ERASEBKGND
to get rid of flicker. In WM_PAINT
handler I first calculate the exact background region and fill it independently. Then I draw text fields with DrawText
but when using DT_EXPANDTABS
it seems that tab characters (i.e. 0x09
) are skipped and not painted and in the end I get visual garbage between words.
Do I have to process tabs manually or is there a flag or setting to force fill the tabs background?