Alexei Podtelezhnikov <apodt...@gmail.com> wrote: > On Sat, May 23, 2020 at 6:01 AM Dmitry Timoshkov <dmi...@baikal.ru> wrote: > > In addition to CS_HREDRAW | CS_VREDRAW the WM_SIZE handler should call > > DefWindowProc() so that default message processing forces a window update. > > After that the window gets repainted while being resized. > > I've achieved the same effect with CS_HREDRAW | CS_VREDRAW | CS_OWNDC. > It looks funky as if everything is working without the bitmap data > being updated. > Check it out if you have time.
I'd suggest to avoid using CS_OWNDC. > > I'd suggest to change the demo design, so that it provides a callback > > to the graphics subsystem for a forced bitmap resize. > > Indeed we need a callback or... Would a longjmp to break the loop work? That would leave user32 in broken internal state. -- Dmitry.