Ticket #1468: filezilla_size_4.patch
File filezilla_size_4.patch, 831 bytes (added by , 20 years ago) |
---|
-
MainFrm.cpp
old new 954 954 955 955 void CMainFrame::OnSize(UINT nType, int cx, int cy) 956 956 { 957 int cy2, tmp; 958 957 959 if (m_wndStatusBar.GetSafeHwnd()) 958 960 { 959 961 if (nType!=SIZE_MAXIMIZED) … … 967 969 //Hide the queue if visible 968 970 m_wndVertSplitter.SetRedraw(FALSE); 969 971 if (m_bShowQueue) 972 { 973 m_wndVertSplitter.GetRowInfoEx(1,cy2,tmp); 970 974 m_wndVertSplitter.HideRow(2,1); 975 } 971 976 } 972 977 //Now only the main splitter gets resized 973 978 CFrameWnd::OnSize(nType, cx, cy); … … 975 980 { 976 981 //Restore the queue 977 982 if (m_bShowQueue) 983 { 978 984 m_wndVertSplitter.ShowRow(2); 985 m_wndVertSplitter.SetRowInfo(1,cy2,0); 986 m_wndVertSplitter.RecalcLayout(); 987 } 979 988 m_wndVertSplitter.SetRedraw(TRUE); 980 989 m_wndVertSplitter.RedrawWindow(); 981 990 }