mirror of https://github.com/BOINC/boinc.git
MGR: eliminate "ghost" Notices window when running on Windows OS
svn path=/trunk/boinc/; revision=24739
This commit is contained in:
parent
69834e0c01
commit
cde9b0a16c
|
@ -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
|
||||
|
|
|
@ -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__
|
||||
|
||||
|
|
Loading…
Reference in New Issue