Use wxID_HIGHEST instead of wxID_HIGHEST+1 in samples

There is no need to add 1 any more since the changes of 99c52403f9 (Use
usual half-open interval for wxID_LOWEST..wxID_HIGHEST, 2022-10-23), so
don't.

Closes #22923.
This commit is contained in:
Blake Madden 2022-10-27 14:34:47 -04:00 committed by Vadim Zeitlin
parent 66a148d51e
commit 9c76bc27c0
18 changed files with 19 additions and 19 deletions

View file

@ -60,7 +60,7 @@ private:
enum
{
ID_Quit = wxID_EXIT,
ID_Logs = wxID_HIGHEST+1,
ID_Logs = wxID_HIGHEST,
ID_Browser,
ID_PlugProvider
};

View file

@ -54,7 +54,7 @@ class MyFrame : public wxFrame
{
enum
{
ID_CreateTree = wxID_HIGHEST+1,
ID_CreateTree = wxID_HIGHEST,
ID_CreateGrid,
ID_CreateText,
ID_CreateHTML,
@ -260,7 +260,7 @@ class SettingsPanel : public wxPanel
{
enum
{
ID_PaneBorderSize = wxID_HIGHEST+1,
ID_PaneBorderSize = wxID_HIGHEST,
ID_SashSize,
ID_CaptionSize,
ID_BackgroundColor,

View file

@ -397,7 +397,7 @@ bool MyApp::OnInit()
enum
{
ID_CLEARLOG = wxID_HIGHEST+1,
ID_CLEARLOG = wxID_HIGHEST,
ID_GET_PAGE_INFO,
ID_HIT_TEST,
ID_DISABLE,

View file

@ -116,7 +116,7 @@ public:
enum
{
// menu items
Display_FromPoint = wxID_HIGHEST + 1,
Display_FromPoint = wxID_HIGHEST,
Display_FullScreen,
Display_ContentProtection_None,
Display_ContentProtection_Enable,

View file

@ -267,7 +267,7 @@ enum
Font_Quit = wxID_EXIT,
Font_About = wxID_ABOUT,
Font_ViewMsg = wxID_HIGHEST+1,
Font_ViewMsg = wxID_HIGHEST,
Font_TestTextValue,
Font_IncSize,

View file

@ -124,7 +124,7 @@ private:
enum
{
ID_ROTATE_LEFT = wxID_HIGHEST+1,
ID_ROTATE_LEFT = wxID_HIGHEST,
ID_ROTATE_RIGHT,
ID_RESIZE,
ID_ZOOM_x2,

View file

@ -109,7 +109,7 @@ public:
// ID for the menu commands
enum
{
INTERNAT_TEST = wxID_HIGHEST + 1,
INTERNAT_TEST = wxID_HIGHEST,
INTERNAT_PLAY,
INTERNAT_TEST_1,
INTERNAT_TEST_2,

View file

@ -41,7 +41,7 @@
// control ids
enum
{
SpinTimer = wxID_HIGHEST + 1
SpinTimer = wxID_HIGHEST
};
// ----------------------------------------------------------------------------

View file

@ -86,7 +86,7 @@ private:
enum
{
NEW_STEREO_WINDOW = wxID_HIGHEST + 1
NEW_STEREO_WINDOW = wxID_HIGHEST
};
#endif // _WX_CUBE_H_

View file

@ -81,7 +81,7 @@ enum
{
Pyramid_Quit = wxID_EXIT,
Pyramid_About = wxID_ABOUT,
Pyramid_LogW = wxID_HIGHEST + 10
Pyramid_LogW = wxID_HIGHEST
};
#endif // PYRSAMLE_H

View file

@ -28,7 +28,7 @@ private:
enum
{
ID_ACTION = wxID_HIGHEST+1
ID_ACTION = wxID_HIGHEST
};
wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)

View file

@ -49,7 +49,7 @@ public:
enum
{
ID_CIRCLE = wxID_HIGHEST + 1,
ID_CIRCLE = wxID_HIGHEST,
ID_CROSS,
ID_TRIANGLE,
ID_SQUARE,

View file

@ -101,7 +101,7 @@ private:
enum
{
// menu items
Sound_SelectFile = wxID_HIGHEST + 1,
Sound_SelectFile = wxID_HIGHEST,
#ifdef __WXMSW__
Sound_SelectResource,
#endif // __WXMSW__

View file

@ -88,7 +88,7 @@ private:
// IDs for the controls and the menu commands
enum
{
Minimal_Run = wxID_HIGHEST + 1
Minimal_Run = wxID_HIGHEST
};
// ----------------------------------------------------------------------------

View file

@ -198,7 +198,7 @@ enum
StatusBar_Quit = wxID_EXIT,
StatusBar_About = wxID_ABOUT,
StatusBar_SetFields = wxID_HIGHEST+1,
StatusBar_SetFields = wxID_HIGHEST,
StatusBar_SetField,
StatusBar_SetText,
StatusBar_PushText,

View file

@ -195,7 +195,7 @@ enum
THREAD_SHOWCPUS,
WORKER_EVENT = wxID_HIGHEST+1, // this one gets sent from MyWorkerThread
WORKER_EVENT = wxID_HIGHEST, // this one gets sent from MyWorkerThread
GUITHREAD_EVENT // this one gets sent from MyGUIThread
};

View file

@ -431,7 +431,7 @@ enum
// (where it is special and put into the "Apple" menu)
VScroll_About = wxID_ABOUT,
VScroll_VScrollMode = wxID_HIGHEST + 1,
VScroll_VScrollMode = wxID_HIGHEST,
VScroll_HScrollMode,
VScroll_HVScrollMode
};

View file

@ -35,7 +35,7 @@
// that if one of these menu items is clicked, then a certain function is
// called.
enum {
PU_ADD_RECORD = wxID_HIGHEST + 1,
PU_ADD_RECORD = wxID_HIGHEST,
PU_EDIT_RECORD,
PU_DELETE_RECORD
};