MGR: eliminate "ghost" Notices window when running on Windows OS

svn path=/trunk/boinc/; revision=24739
This commit is contained in:
Charlie Fenton 2011-12-06 10:51:30 +00:00
parent 69834e0c01
commit cde9b0a16c
2 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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__