From: Stefan Csomor Date: Sat, 11 May 2002 06:48:50 +0000 (+0000) Subject: native window disposal is moved to deferred delete, size of parent taken into account... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/baf52e1ccd454f351eb9825bb147400f82f4a85f native window disposal is moved to deferred delete, size of parent taken into account for apply background git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index a821346eef..fb00a1c4d1 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -694,11 +694,17 @@ bool wxWindowMac::Show(bool show) if ( !wxWindowBase::Show(show) ) return FALSE; +/* + WindowRef window = (WindowRef) MacGetRootWindow() ; + wxWindowMac* win = wxFindWinFromMacWindow( window ) ; + if ( win == NULL && win->m_isBeingDeleted ) + return FALSE ; +*/ MacSuperShown( show ) ; + Refresh() ; +/* if ( !show ) { - WindowRef window = (WindowRef) MacGetRootWindow() ; - wxWindowMac* win = wxFindWinFromMacWindow( window ) ; if ( win && !win->m_isBeingDeleted ) Refresh() ; } @@ -706,7 +712,7 @@ bool wxWindowMac::Show(bool show) { Refresh() ; } - +*/ return TRUE; } @@ -911,7 +917,7 @@ const wxBrush& wxWindowMac::MacGetBackgroundBrush() Rect extent = { 0 , 0 , 0 , 0 } ; int x , y ; x = y = 0 ; - wxSize size = GetSize() ; + wxSize size = parent->GetSize() ; parent->MacClientToRootWindow( &x , &y ) ; extent.left = x ; extent.top = y ; diff --git a/src/mac/window.cpp b/src/mac/window.cpp index a821346eef..fb00a1c4d1 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -694,11 +694,17 @@ bool wxWindowMac::Show(bool show) if ( !wxWindowBase::Show(show) ) return FALSE; +/* + WindowRef window = (WindowRef) MacGetRootWindow() ; + wxWindowMac* win = wxFindWinFromMacWindow( window ) ; + if ( win == NULL && win->m_isBeingDeleted ) + return FALSE ; +*/ MacSuperShown( show ) ; + Refresh() ; +/* if ( !show ) { - WindowRef window = (WindowRef) MacGetRootWindow() ; - wxWindowMac* win = wxFindWinFromMacWindow( window ) ; if ( win && !win->m_isBeingDeleted ) Refresh() ; } @@ -706,7 +712,7 @@ bool wxWindowMac::Show(bool show) { Refresh() ; } - +*/ return TRUE; } @@ -911,7 +917,7 @@ const wxBrush& wxWindowMac::MacGetBackgroundBrush() Rect extent = { 0 , 0 , 0 , 0 } ; int x , y ; x = y = 0 ; - wxSize size = GetSize() ; + wxSize size = parent->GetSize() ; parent->MacClientToRootWindow( &x , &y ) ; extent.left = x ; extent.top = y ;