Sources Bugzilla – Attachment #3733: Patch to reduce resize flickering for bug #9840
HandleCustomWM_INITMENU ((unsigned long)hwnd, wParam);
break;
case WM_ERASEBKGND:
/*
* Pretend that we did erase the background but we don't care,
* since we repaint the entire region anyhow
* This avoids some flickering when resizing.
*/
return TRUE;
case WM_PAINT:
/* Only paint if our window handle is valid */
if (hwndScreen == NULL)
SendMessage (hwndScreen, message, wParam, lParam);
return 0;
#if CYGDEBUG
winDebug ("winMWExtWMWindowProc - WM_ERASEBKGND\n");
#endif
/* BeginPaint gives us an hdc that clips to the invalidated region */