CWnd Flicker when resizing a window
Posted on 2003-11-14
I have a class derived off of CWnd (CDataTable).
I have the application setup in such a way that when you resize the main window, the CDataTable object will also scale to fit a specified ratio of the screen.
The problem is, when I resize the window, and the CDataTable resizes, the data table produces a flicker effect.
I have tried adding a double-buffer to the CDataTable's WM_PAINT message before painting, but it doesn't affect anything.
I am hoping to figure out either how to stop the flicker, or an easy way to display a flicker free bounding region in place of the entire table when resizing. Essentially, I need absolutely NO FLICKER;