]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinctrl.cpp
missing event.Skip() added (it was impossible to use mouse without it...)
[wxWidgets.git] / src / msw / spinctrl.cpp
index 3946d365a9398f6ec0b57a39225a15a5b76e8ae5..e8f8323ff3c8d073644f5212d9523217d08c6973 100644 (file)
@@ -40,7 +40,7 @@
 #include "wx/spinctrl.h"
 #include "wx/msw/private.h"
 
-#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__) || defined(wxUSE_NORLANDER_HEADERS)
+#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__))
     #include <commctrl.h>
 #endif
 
@@ -232,6 +232,11 @@ bool wxSpinCtrl::Enable(bool enable)
     return TRUE;
 }
 
+void wxSpinCtrl::SetFocus()
+{
+    ::SetFocus((HWND)m_hwndBuddy);
+}
+
 // ----------------------------------------------------------------------------
 // event processing
 // ----------------------------------------------------------------------------