Fix and simplify CMainFrame::OnSizing()