]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/listctrlcmn.cpp
Reuse wxMenu::SendEvent() from wxFrameBase::ProcessCommand().
[wxWidgets.git] / src / common / listctrlcmn.cpp
index b19ed6e38cb42d7ca401e5f53ff9e8ab9c82e335..5edcf420f121fb111ee53d17167618b9fa72da7e 100644 (file)
@@ -153,7 +153,9 @@ wxListCtrlBase::InsertColumn(long col,
     wxListItem item;
     item.m_mask = wxLIST_MASK_TEXT | wxLIST_MASK_FORMAT;
     item.m_text = heading;
-    if ( width > -1 )
+    if ( width >= 0
+            || width == wxLIST_AUTOSIZE
+                || width == wxLIST_AUTOSIZE_USEHEADER )
     {
         item.m_mask |= wxLIST_MASK_WIDTH;
         item.m_width = width;