]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarsmpl.cpp
wxTextStream now interprets 1,1 as 1.1 (European formating).
[wxWidgets.git] / src / common / tbarsmpl.cpp
index c0d5dbded34100fdc65c5bd1696d1abb44b03a90..662c6aa4f806a9fc9d7631490274d26dd6d183b6 100644 (file)
 #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())