]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/choice.cpp
1. more code commented out by DW (@#%#%!#%!@) uncommented
[wxWidgets.git] / src / msw / choice.cpp
index 9c7c335392f680ea16ac986d63231d27178dc207..c6a9f7909f1286279a058759f7965290cddc90df 100644 (file)
@@ -317,10 +317,15 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
         return FALSE;
     }
 
+    int n = GetSelection();
     wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId);
-    event.SetInt(GetSelection());
+    event.SetInt(n);
     event.SetEventObject(this);
     event.SetString(GetStringSelection());
+    if ( HasClientObjectData() )
+        event.SetClientObject( GetClientObject(n) );
+    else if ( HasClientUntypedData() )
+        event.SetClientData( GetClientData(n) );
     ProcessCommand(event);
 
     return TRUE;