From ddbc3fcf4581c6dc4b394a0ace058a4ce5293277 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 26 Oct 2004 18:49:50 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4432 --- clientgui/MainFrame.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/clientgui/MainFrame.cpp b/clientgui/MainFrame.cpp index 89659ccb20..57e1848049 100644 --- a/clientgui/MainFrame.cpp +++ b/clientgui/MainFrame.cpp @@ -365,13 +365,14 @@ bool CMainFrame::SaveState() wxASSERT(NULL != pConfig); wxASSERT(NULL != m_pNotebook); - // // Save Frame State // pConfig->SetPath(strBaseConfigLocation); pConfig->Write(wxT("CurrentPage"), m_pNotebook->GetSelection()); + pConfig->Write(wxT("Width"), GetSize().GetWidth()); + pConfig->Write(wxT("Height"), GetSize().GetHeight()); // @@ -411,6 +412,8 @@ bool CMainFrame::RestoreState() wxString strPreviousLocation = wxEmptyString; wxInt32 iIndex = 0; wxInt32 iPageCount = 0; + wxInt32 iHeight = 0; + wxInt32 iWidth = 0; wxASSERT(NULL != pConfig); @@ -428,6 +431,10 @@ bool CMainFrame::RestoreState() pConfig->Read(wxT("CurrentPage"), &iCurrentPage, 1); m_pNotebook->SetSelection(iCurrentPage); + pConfig->Read(wxT("Width"), &iWidth, 800); + pConfig->Read(wxT("Height"), &iHeight, 600); + SetSize( -1, -1, iWidth, iHeight ); + // // Restore Page(s) State