diff --git a/checkin_notes b/checkin_notes index 6dfbb11c14..58c539a122 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8847,3 +8847,9 @@ David 6 Dec 2011 client/ work_fetch.cpp,h cpu_sched.cpp + +Charlie 6 Dec 2011 + - MGR: eliminate "ghost" Notices window when running on Windows OS. + + clientgui/ + sg_DlgMessages.cpp diff --git a/clientgui/sg_DlgMessages.cpp b/clientgui/sg_DlgMessages.cpp index 3fa5d53a9b..a5e186d87a 100644 --- a/clientgui/sg_DlgMessages.cpp +++ b/clientgui/sg_DlgMessages.cpp @@ -352,8 +352,7 @@ bool CDlgMessages::Create( wxWindow* parent, wxWindowID id, const wxString& capt GetSizer()->Fit(this); GetSizer()->SetSizeHints(this); - Center(); - + // To work properly on Mac, RestoreState() must be called _after_ // calling GetSizer()->Fit(), GetSizer()->SetSizeHints() and Center() RestoreState(); @@ -557,11 +556,11 @@ void CDlgMessages::RestoreWindowDimensions() { if ( iLeft + iWidth > iMaxWidth ) iLeft = iMaxWidth - iWidth; if ( iTop + iHeight > iMaxHeight ) iTop = iMaxHeight - iHeight; - Iconize(bWindowIconized); - Maximize(bWindowMaximized); if (!IsIconized() && !IsMaximized()) { SetSize(iLeft, iTop, iWidth, iHeight); } + Iconize(bWindowIconized); + Maximize(bWindowMaximized); #else // ! __WXMAC__