]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/control.cpp
added conversion routines to CIconHandle
[wxWidgets.git] / src / mac / control.cpp
index 764da5b8c24b1ce3a74cf32763b5a05fb5047e0d..4d4e3ffc32e630000268d0d5f44eaee12bcd9cce 100644 (file)
@@ -834,9 +834,13 @@ void  wxControl::OnMouseEvent( wxMouseEvent &event )
        
                if ( event.m_metaDown )
                        modifiers |= cmdKey ;
-       
-//             controlpart = FindControl( localwhere , window , &control ) ;
+
+#if TARGET_CARBON
         control = FindControlUnderMouse( localwhere , window , &controlpart ) ;
+#else
+//        control = FindControlUnderMouse( localwhere , window , &controlpart ) ;
+               controlpart = FindControl( localwhere , window , &control ) ;
+#endif
                {
                /*
                        if ( AcceptsFocus() && FindFocus() != this )