X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6305fabeeb14bf9fb020d096c5944ffb1b2ae4dc..e2f92883582b858e2cfe6c87704ef57bbbd67f76:/src/msw/listbox.cpp?ds=inline diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index a34af86c41..360767c00f 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -390,7 +390,7 @@ void wxListBox::Free() } } -void wxListBox::SetSelection(int N, bool select) +void wxListBox::DoSetSelection(int N, bool select) { wxCHECK_RET( N == wxNOT_FOUND || (N >= 0 && N < m_noItems), @@ -732,7 +732,7 @@ bool wxListBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id)) event.SetExtraLong( HasMultipleSelection() ? IsSelected(n) : true ); } - event.m_commandInt = n; + event.SetInt(n); return GetEventHandler()->ProcessEvent(event); }