Dmitry, > It probably needs adding CS_HREDRAW | CS_VREDRAW to ourClass.style.
That was not enough. Anuj, > The window enters a modal loop whenever you start resizing the window, the > loop terminates when the mouse is released. Yes and I have read that during the look WM_SIZING and WM_NCPAINT fire up. Is that true? Handling WM_SIZING alone was not enough. Thanks, Alexei