How to avoid flicker while handling WM_ERASEBKGND in Windows dialog

后端 未结 6 1261
梦谈多话
梦谈多话 2020-12-17 19:41

I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect).

When t

6条回答
  •  时光说笑
    2020-12-17 20:30

    you can set parameter of your call to InvalidateRect method as false. This will prevent you to send WM_ERASEBKGND when the window will redraw.

提交回复
热议问题