Double buffer common controls

前端 未结 8 1153
不思量自难忘°
不思量自难忘° 2020-12-18 07:19

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 fe

8条回答
  •  没有蜡笔的小新
    2020-12-18 07:38

    We use WTL::CDoubleBufferImpl mix-in for that purpose. We even draw stuff with GDI+ over. Zero flickering.

    Usage is pretty simple: you just public-ly inherit from WTL::CDoubleBufferImpl, and chain it in the ATL message map.

提交回复
热议问题