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
This commit is contained in:
Stefan Csomor
2002-05-11 06:48:50 +00:00
parent 2d9d0118ea
commit baf52e1ccd
2 changed files with 20 additions and 8 deletions

View File

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

View File

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