use wxWindowIDRef to transparently implement auto-generated ids ref-counting (slightly modified patch 1835458)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -886,6 +886,16 @@
|
||||
// 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.
|
||||
#define wxUSE_AUTOID_MANAGEMENT defined(__WXMSW__)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// common dialogs
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user