+// ============================================================================
+// wxControlWithItems implementation
+// ============================================================================
+
+void wxControlWithItems::InitCommandEventWithItems(wxCommandEvent& event, int n)
+{
+ InitCommandEvent(event);
+
+ if ( n != wxNOT_FOUND )
+ {
+ if ( HasClientObjectData() )
+ event.SetClientObject(GetClientObject(n));
+ else if ( HasClientUntypedData() )
+ event.SetClientData(GetClientData(n));
+ }
+}
+