Alexei Podtelezhnikov <apodt...@gmail.com> wrote:

> 
> > On May 23, 2020, at 23:43, Anuj Verma <an...@iitbhilai.ac.in> wrote:
> > 
> > Also, the application crashes when the width/height becomes zero.
> > So it should check the values of width/height before 
> > `gr_win32_surface_resize'
> > in the `WM_SIZE' message.
> 
> Thank you and Dmitry for your suggestions and testing. Clearly, the smooth
> resizing is probably not meant to be in Windows by design.

Well, the applications are supposed to render window contents on WM_PAINT,
and on WM_SIZE change the canvas size. In other words, the demo should take
into account that window size could change but a being painted bitmap stay
the same.

> So I will just
> use WM_EXITSIZEMOVE instead of WM_SIZE to remove artists and be done with it.

That would leave the cases of external window resizing and maximizing not
handled.

-- 
Dmitry.

Reply via email to