X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e36a173933aaa81b28a27979c3748e8bc42ef88c..c058cafa56179e79df02ad370bdeafd725ff2478:/include/wx/os2/setup0.h diff --git a/include/wx/os2/setup0.h b/include/wx/os2/setup0.h index be39d4b4fa..c8350fae1d 100644 --- a/include/wx/os2/setup0.h +++ b/include/wx/os2/setup0.h @@ -886,6 +886,20 @@ // wxValidator class and related methods #define wxUSE_VALIDATORS 1 +// Use reference counted ID management: this means that wxWidgets will track +// the automatically allocated ids (those used when you use wxID_ANY when +// creating a window, menu or toolbar item &c) instead of just supposing that +// the program never runs out of them. This is mostly useful only under wxMSW +// where the total ids range is limited to SHRT_MIN..SHRT_MAX and where +// long-running programs can run into problems with ids reuse without this. On +// the other platforms, where the ids have the full int range, this shouldn't +// be necessary. +#ifdef __WXMSW__ +#define wxUSE_AUTOID_MANAGEMENT 1 +#else +#define wxUSE_AUTOID_MANAGEMENT 0 +#endif + // ---------------------------------------------------------------------------- // common dialogs // ----------------------------------------------------------------------------