Handle window resizing under Windows