cpp/MainWindow.hpp
changeset 6 66becdcbe5d9
parent 5 f2a2f64eb682
--- a/cpp/MainWindow.hpp	Sun Feb 13 08:43:06 2011 +0100
+++ b/cpp/MainWindow.hpp	Sun Feb 13 22:51:39 2011 +0100
@@ -4,15 +4,14 @@
 #include <wx/wx.h>
 #include <wx/event.h>
 
+BEGIN_DECLARE_EVENT_TYPES()
+    DECLARE_EVENT_TYPE(EV_SKIP_QUESTION, -1)
+    DECLARE_EVENT_TYPE(EV_SAVE_SENTENCE, -2)
+END_DECLARE_EVENT_TYPES()
+
 class MainWindow : public wxFrame
 {
     public:
-        enum
-        {
-            ID_SKIP_QUESTION,
-            ID_SAVE_SENTENCE
-        };
-
         MainWindow();
 
         void OnSkipQuestion(wxCommandEvent &e);