From: Robin Dunn Date: Fri, 22 Aug 2003 23:57:06 +0000 (+0000) Subject: Don't use wxID_ANY so events from child wxListCtrl's don't confuse the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f29395d0e42f4fd7d1183fe1c877ffb93460b030 Don't use wxID_ANY so events from child wxListCtrl's don't confuse the wxListBook. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 0a616643e2..1ac9ecceff 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -53,11 +53,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxListbookEvent, wxNotifyEvent) const wxEventType wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = wxNewEventType(); const wxEventType wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = wxNewEventType(); +const int wxID_LISTBOOKLISTVIEW = wxNewId(); BEGIN_EVENT_TABLE(wxListbook, wxBookCtrl) EVT_SIZE(wxListbook::OnSize) - EVT_LIST_ITEM_SELECTED(wxID_ANY, wxListbook::OnListSelected) + EVT_LIST_ITEM_SELECTED(wxID_LISTBOOKLISTVIEW, wxListbook::OnListSelected) END_EVENT_TABLE() // ============================================================================ @@ -99,7 +100,7 @@ wxListbook::Create(wxWindow *parent, m_list = new wxListView ( this, - -1, + wxID_LISTBOOKLISTVIEW, wxDefaultPosition, wxDefaultSize, wxLC_ICON | wxLC_SINGLE_SEL