]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
don't set min width for the buttons
[wxWidgets.git] / src / msw / listctrl.cpp
index be0c0bbef84834e4f2a8f82fcdfba5ba3b1452a1..d5bd89601f6fbb7bf00c4d686b1971251f354631 100644 (file)
@@ -1498,7 +1498,6 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                      !(wxIsShiftDown() || wxIsCtrlDown()) )
                 {
                     eventType = wxEVT_COMMAND_LIST_ITEM_ACTIVATED;
-                    event.m_itemIndex = lItem;
                 }
                 else
                 {
@@ -1506,6 +1505,9 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                     event.m_code = wxCharCodeMSWToWX(wVKey);
                 }
 
+                event.m_itemIndex =
+                event.m_item.m_itemId = lItem;
+
                 if ( lItem != -1 )
                 {
                     // fill the other fields too