You also need one of these (line 608) to update aspect when the window gets stretched.
ElseiF wMsg = WM_SIZE
GetClientRect hWnd, rc
glViewport 0, 0, rc.right, rc.bottom
Aspect=rc.right/rc.bottom
glMatrixMode GL_Projection
glLoadIdentity
Perspective 45.0,Aspect, 0.1,100.0