Deal with WM_SIZE event.