Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的自定义控件中,我避免WM_ERASEBKGND摆脱闪烁。在WM_PAINT处理程序中,我首先计算确切的背景区域并独立填充它。然后我绘制文本字段,DrawText但在使用DT_EXPANDTABS时似乎0x09跳过而不是绘制制表符(即),最后我在单词之间得到视觉垃圾。
WM_ERASEBKGND
WM_PAINT
DrawText
DT_EXPANDTABS
0x09
我是否必须手动处理选项卡,或者是否有标志或设置来强制填充选项卡背景?