X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/280df0853330e63840a73e6fcd238e0304db2be2..2fb4d7b86e82851bafd4620418e0e404fc801f1c:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index d9735a9c22..4d4e3ffc32 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -40,7 +40,7 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow) END_EVENT_TABLE() #endif -#include +#include "wx/mac/uma.h" // Item members @@ -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 )