> Ok. They also say that PostQuitMessage should get me out of any modal loop.
That doesn't seem to be stopping the modal loop when I tested it. And even if you break out of the modal loop the window won't resize properly. 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. Anuj