On Sat, May 23, 2020 at 6:01 AM Dmitry Timoshkov <[email protected]> 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 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?

Alexei

Reply via email to