From dadacffc74279b70bef873e383a749f9aa8141f9 Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Thu, 14 Jul 2005 23:06:02 +0000
Subject: [PATCH] added wxID_NONE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/stdevtid.tex |  3 +++
 include/wx/defs.h          | 23 +++++++++++------------
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/docs/latex/wx/stdevtid.tex b/docs/latex/wx/stdevtid.tex
index 48ff1da816..cfe2af1d19 100644
--- a/docs/latex/wx/stdevtid.tex
+++ b/docs/latex/wx/stdevtid.tex
@@ -12,6 +12,9 @@ you may use it to indicate that you want to handle the events
 coming from any control, regardless of its identifier
 \end{itemize}
 
+Another standard special identifier value is {\tt wxID\_NONE}: this is a value
+which is not matched by any other id.
+
 wxWidgets also defines a few standard command identifiers which may be used by
 the user code and also are sometimes used by wxWidgets itself. These reserved
 identifiers are all in the range between {\tt wxID\_LOWEST} and 
diff --git a/include/wx/defs.h b/include/wx/defs.h
index 228bb0d808..e4f6b3d865 100644
--- a/include/wx/defs.h
+++ b/include/wx/defs.h
@@ -1617,22 +1617,21 @@ enum wxBackgroundStyle
 /*  standard IDs */
 /*  ---------------------------------------------------------------------------- */
 
-/*  any id: means that we don't care about the id, whether when installing an */
-/*  event handler or when creating a new window */
+/*  Standard menu IDs */
 enum
 {
-    wxID_ANY = -1
-};
+    /* no id matches this one when compared to it */
+    wxID_NONE = -3,
 
-/*  id for a separator line in the menu (invalid for normal item) */
-enum
-{
-    wxID_SEPARATOR = -2
-};
+    /*  id for a separator line in the menu (invalid for normal item) */
+    wxID_SEPARATOR = -2,
 
-/*  Standard menu IDs */
-enum
-{
+    /* any id: means that we don't care about the id, whether when installing
+     * an event handler or when creating a new window */
+    wxID_ANY = -1,
+
+
+    /* all predefined ids are between wxID_LOWEST and wxID_HIGHEST */
     wxID_LOWEST = 4999,
 
     wxID_OPEN,
-- 
2.50.0

