]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxID_NONE
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 14 Jul 2005 23:06:02 +0000 (23:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 14 Jul 2005 23:06:02 +0000 (23:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/stdevtid.tex
include/wx/defs.h

index 48ff1da8166723eeb731d83018d2830725fa21f9..cfe2af1d190df757528bfb3ff74c385d596175bc 100644 (file)
@@ -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 
index 228bb0d808ba88bc66bf4b3b7773f77064cee5bd..e4f6b3d8652ab60274a540524a326084e0bb4473 100644 (file)
@@ -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,