control-library

Double buffer common controls

 ̄綄美尐妖づ 提交于 2019-12-18 05:05:11
问题 Is there a way to double-buffer the common controls? Currently when they resize they flicker. A lot..... EDIT: If it helps, it is a bunch of button controls and a few edit controls, all sitting on top of a tab control. The Tab control redraws itself, then the buttons redraw themselves. When the buttons redraw, they flicker. EDIT2: Here's an example of the problem I'm having: http://billy-oneal.com/Lobfuscator.exe 回答1: Look at using WS_EX_COMPOSITED and WS_EX_TRANSPARENT styles. They provide

Double buffer common controls

荒凉一梦 提交于 2019-11-29 07:47:08
Is there a way to double-buffer the common controls ? Currently when they resize they flicker. A lot..... EDIT: If it helps, it is a bunch of button controls and a few edit controls, all sitting on top of a tab control. The Tab control redraws itself, then the buttons redraw themselves. When the buttons redraw, they flicker. EDIT2: Here's an example of the problem I'm having: http://billy-oneal.com/Lobfuscator.exe Look at using WS_EX_COMPOSITED and WS_EX_TRANSPARENT styles. They provide doublebuffering, altough WM_PAINT will be called when the underlying bitmap is finished drawing, since it