X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4445d24d33828580f8bf2a1215ef906f70adb51..c0badb709a86b91a203416784b649e3d00c699c7:/src/msw/choice.cpp?ds=sidebyside diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 1441653418..3dcb4aa42a 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -741,10 +741,7 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id)) if ( n > -1 ) { event.SetString(GetStringSelection()); - if ( HasClientObjectData() ) - event.SetClientObject( GetClientObject(n) ); - else if ( HasClientUntypedData() ) - event.SetClientData( GetClientData(n) ); + InitCommandEventWithItems(event, n); } ProcessCommand(event);