Double buffer common controls

前端 未结 8 1103
不思量自难忘°
不思量自难忘° 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:44

    Without knowing exactly what you're doing, I assume you're using either MFC or Win32 C for this.

    You probably want to do the resize on WM_SIZE message. I'm not sure where you're resizing the controls, but I think you're doing it while it's being resized, which is why it's causing the flicker.

    Also, I'm thinking but I don't know, you could probably use the SetWindowPos function, and for the uFlags, have SWP_NOREDRAW. Though I'm not sure how great this would work for common controls.

提交回复
热议问题