From 91ae6e3a94ce5ebf062e10f1a6eb243a5fc43595 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 24 Feb 2005 14:09:08 +0000 Subject: [PATCH] notifying children of absolute position changes, add version checks instead of symbol checks, so that CW builds do not complain on 10.2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 54a816f4c3..e0624a598e 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -1811,6 +1811,9 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height) if ( vis ) m_peer->SetVisibility( true , true ) ; + if ( doMove ) + wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified + MacInvalidateBorders() ; MacRepositionScrollBars() ; @@ -2401,7 +2404,7 @@ void wxWindowMac::MacPaintBorders( int leftOrigin , int rightOrigin ) InsetRect( &rect, -MacGetLeftBorderSize() , -MacGetTopBorderSize() ) ; #if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 - if ( HIThemeDrawFrame != 0) + if ( UMAGetSystemVersion() >= 0x1030 ) { Rect srect = rect ; HIThemeFrameDrawInfo info ; @@ -3069,7 +3072,7 @@ bool wxWindowMac::MacDoRedraw( WXHRGN updatergnr , long time ) if ( !child->GetEventHandler()->ProcessEvent( eventNc ) ) { #if wxMAC_USE_CORE_GRAPHICS && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 - if ( HIThemeDrawFrame != 0) + if ( UMAGetSystemVersion() >= 0x1030 ) { child->MacPaintBorders(0,0) ; } -- 2.45.2