X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03fc89fff2d6e823e7d4d14fbe14822ad6777b1..20e05ffbd3eff02a4c643e412d4f600cdea26952:/src/common/tbarsmpl.cpp?ds=sidebyside diff --git a/src/common/tbarsmpl.cpp b/src/common/tbarsmpl.cpp index c0d5dbded3..662c6aa4f8 100644 --- a/src/common/tbarsmpl.cpp +++ b/src/common/tbarsmpl.cpp @@ -21,7 +21,10 @@ #endif #ifndef WX_PRECOMP -#include "wx/wx.h" +#include "wx/settings.h" +#include "wx/window.h" +#include "wx/dcclient.h" +#include "wx/dcmemory.h" #endif #if wxUSE_TOOLBAR @@ -110,8 +113,8 @@ void wxToolBarSimple::OnKillFocus (wxFocusEvent& WXUNUSED(event)) void wxToolBarSimple::OnMouseEvent ( wxMouseEvent & event ) { - long x, y; - event.Position(&x, &y); + wxCoord x, y; + event.GetPosition(&x, &y); wxToolBarTool *tool = FindToolForPosition(x, y); if (event.LeftDown())