]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/validate/validate.h
use kind, not id, of a menu item to test whether it's a separator: this allows having...
[wxWidgets.git] / samples / validate / validate.h
index 98414f05f14fc3940e20b95137997268e0e1e206..09f7db7bda32065356495637774b4ef765dc710d 100644 (file)
@@ -71,14 +71,15 @@ public:
     int m_radiobox_choice;
 };
 
-#define VALIDATE_DIALOG_ID      200
+enum {
+    VALIDATE_DIALOG_ID = wxID_HIGHEST,
 
-#define VALIDATE_TEST_DIALOG      2
-#define VALIDATE_TOGGLE_BELL      3
-
-#define VALIDATE_TEXT           101
-#define VALIDATE_LIST           102
-#define VALIDATE_CHECK          103
-#define VALIDATE_COMBO          105
-#define VALIDATE_RADIO          106
+    VALIDATE_TEST_DIALOG,
+    VALIDATE_TOGGLE_BELL,
 
+    VALIDATE_TEXT,
+    VALIDATE_LIST,
+    VALIDATE_CHECK,
+    VALIDATE_COMBO,
+    VALIDATE_RADIO
+};