Reduce flicker with GDI+ and C++

前端 未结 6 1565
再見小時候
再見小時候 2020-11-29 21:17

I\'m using GDI+ in a C++/MFC application and I just can\'t seem to avoid flickering whenever the window is resized.

I have already tried these steps:

  • r
6条回答
  •  -上瘾入骨i
    2020-11-29 21:39

    Are there child windows on the form? The Window manager starts by getting the parent window to erase its background by sending a WM_ERASEBKGND message, THEN it sends a wM_PAINT message - presumably this maps to your wx::OnDraw method. Then it iterates over each child control and gets those to paint themselves.

    If this is your scenario... using Vistas new aero look would solve your problem as the aero desktop window manager does window compositing automatically. With the older window manager its a pita.

提交回复
热议问题