]> git.saurik.com Git - wxWidgets.git/commitdiff
notifying children of absolute position changes, add version checks instead of symbol...
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 24 Feb 2005 14:09:08 +0000 (14:09 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 24 Feb 2005 14:09:08 +0000 (14:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 54a816f4c33fc502cd82a9a2864f6d9526cb74da..e0624a598e5aede90212c862a0fb7d40bbaab9c3 100644 (file)
@@ -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) ;
                     }