refresh screen

With SDI, i code my opengl drawing in a dialog.cpp but everytime when i move my dialog away (on top of my view window)my drawing in the SDI window becomes white out by the dialog outline, i added

cs.style |= (WS_CLIPCHILDREN | WS_CLIPSIBLINGS);

in my CView class precreate function but no help, any one can help?

It seems like your app doesnt redraw on “needs redraw” messages.