]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/spinctrlcmn.cpp
fixing modal dialog quit after nested message box problem
[wxWidgets.git] / src / common / spinctrlcmn.cpp
index 68b7e2e10bbb05b5605b6c99052478a9fcadac2f..404f28a241625e7f62d7cbfafcbb6dc03545fc74 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     define wxSpinCtrl event types
 // Author:      Peter Most
 // Created:     01.11.08
-// RCS-ID:      $Id:$
+// RCS-ID:      $Id$
 // Copyright:   (c) 2008-2009 wxWidgets team
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -26,6 +26,9 @@
 #include "wx/spinbutt.h"
 #include "wx/spinctrl.h"
 
-wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEvent)
-wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED, wxSpinDoubleEvent)
+#if wxUSE_SPINCTRL
 
+wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEvent);
+wxDEFINE_EVENT(wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED, wxSpinDoubleEvent);
+
+#endif // wxUSE_SPINCTRL