Sure, it's quite simple:
LRESULT CMyFrameWnd::OnDisplayChange(WPARAM wParam, LPARAM lParam)
{
// cBitsPerPixel = wParam;
// cxScreen = LOWORD(lParam);
// cyScreen = HIWORD(lParam);
// Redraw the window and its children
RedrawWindow(NULL, NULL, RDW\_INVALIDATE | RDW\_ERASE | RDW\_ALLCHILDREN | RDW\_UPDATENOW);
// Pass it on to the base class
return CFrameWnd::OnDisplayChange(wParam, lParam);
}
This should do the trick, if it doesn't then I suppose something else is going on.