Ticket #1468: filezilla_size_4.patch

File filezilla_size_4.patch, 831 bytes (added by tommywu, 17 years ago)

restore the splitter size after ShowRow?

  • MainFrm.cpp

    old new  
    954954
    955955void CMainFrame::OnSize(UINT nType, int cx, int cy)
    956956{
     957    int cy2, tmp;
     958
    957959    if (m_wndStatusBar.GetSafeHwnd())
    958960    {
    959961        if (nType!=SIZE_MAXIMIZED)
     
    967969        //Hide the queue if visible
    968970        m_wndVertSplitter.SetRedraw(FALSE);
    969971        if (m_bShowQueue)
     972        {
     973            m_wndVertSplitter.GetRowInfoEx(1,cy2,tmp);
    970974            m_wndVertSplitter.HideRow(2,1);
     975        }
    971976    }
    972977    //Now only the main splitter gets resized
    973978    CFrameWnd::OnSize(nType, cx, cy);
     
    975980    {
    976981        //Restore the queue
    977982        if (m_bShowQueue)
     983        {
    978984            m_wndVertSplitter.ShowRow(2);
     985            m_wndVertSplitter.SetRowInfo(1,cy2,0);
     986            m_wndVertSplitter.RecalcLayout();
     987        }
    979988        m_wndVertSplitter.SetRedraw(TRUE);
    980989        m_wndVertSplitter.RedrawWindow();
    981990    }