No longer use Win32API for window resizing. This should work under all platforms that support window resizing.