]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/control.cpp
removed corrected detection of wchar_t under Mac OS X (added in revision 1.355)
[wxWidgets.git] / src / mac / control.cpp
index 1d23a5eaaee279e18b8dda8aa972cbf46ed9e925..764da5b8c24b1ce3a74cf32763b5a05fb5047e0d 100644 (file)
@@ -40,7 +40,7 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow)
 END_EVENT_TABLE()
 #endif
 
-#include <wx/mac/uma.h>
+#include "wx/mac/uma.h"
 
 // Item members
 
@@ -835,7 +835,8 @@ void  wxControl::OnMouseEvent( wxMouseEvent &event )
                if ( event.m_metaDown )
                        modifiers |= cmdKey ;
        
-               controlpart = FindControl( localwhere , window , &control ) ;
+//             controlpart = FindControl( localwhere , window , &control ) ;
+        control = FindControlUnderMouse( localwhere , window , &controlpart ) ;
                {
                /*
                        if ( AcceptsFocus() && FindFocus() != this )
@@ -851,7 +852,7 @@ void  wxControl::OnMouseEvent( wxMouseEvent &event )
                                        else
                                                controlpart = UMAHandleControlClick( control , localwhere , modifiers , (ControlActionUPP) -1 ) ;
                                        wxTheApp->s_lastMouseDown = 0 ;
-                                       if ( controlpart && ! ( ( UMAHasAppearance() || (controlpart != kControlIndicatorPart) ) 
+                                       if ( control && ! ( ( UMAHasAppearance() || (controlpart != kControlIndicatorPart) ) 
                                                && (IsKindOf( CLASSINFO( wxScrollBar ) ) ) ) ) // otherwise we will get the event twice
                                        {
                                                MacHandleControlClick( control , controlpart ) ;