added wxID_NONE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
coming from any control, regardless of its identifier
|
||||||
\end{itemize}
|
\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
|
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
|
the user code and also are sometimes used by wxWidgets itself. These reserved
|
||||||
identifiers are all in the range between {\tt wxID\_LOWEST} and
|
identifiers are all in the range between {\tt wxID\_LOWEST} and
|
||||||
|
@@ -1617,22 +1617,21 @@ enum wxBackgroundStyle
|
|||||||
/* standard IDs */
|
/* 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 */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxID_ANY = -1
|
|
||||||
};
|
|
||||||
|
|
||||||
/* id for a separator line in the menu (invalid for normal item) */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
wxID_SEPARATOR = -2
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Standard menu IDs */
|
/* Standard menu IDs */
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
/* no id matches this one when compared to it */
|
||||||
|
wxID_NONE = -3,
|
||||||
|
|
||||||
|
/* id for a separator line in the menu (invalid for normal item) */
|
||||||
|
wxID_SEPARATOR = -2,
|
||||||
|
|
||||||
|
/* 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_LOWEST = 4999,
|
||||||
|
|
||||||
wxID_OPEN,
|
wxID_OPEN,
|
||||||
|
Reference in New Issue
Block a user