]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/sashwin.cpp
replaced all int/size_t indices in wxControlWithItems API with unsigned int (committi...
[wxWidgets.git] / src / generic / sashwin.cpp
index 945582381a1df054bf5c540ce89116056c0241c3..b9e554da14270c6530724dd1dedcbcd6f8051b30 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 
 #include "wx/dcscreen.h"
+#include "wx/dcclient.h"
 #include "wx/sashwin.h"
 #include "wx/laywin.h"
 
@@ -94,7 +95,7 @@ void wxSashWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
 
 void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
 {
-    wxCoord x, y;
+    wxCoord x = 0, y = 0;
     event.GetPosition(&x, &y);
 
     wxSashEdgePosition sashHit = SashHitTest(x, y);