X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92976ab62b850005f9b1e506d0e5ccf2ed465c15..17dff81c7141e142765b168ab225e5c61475669f:/src/msw/listctrl.cpp diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 950b6d809b..ef8ee7abc9 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -100,7 +100,7 @@ bool wxListCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, con if ( want3D || wxStyleHasBorder(m_windowStyle) ) wstyle |= WS_BORDER; - wstyle |= LVS_SHAREIMAGELISTS; + wstyle |= LVS_SHAREIMAGELISTS | LVS_SHOWSELALWAYS ; m_baseStyle = wstyle; long oldStyle = 0; // Dummy @@ -482,6 +482,9 @@ bool wxListCtrl::GetItem(wxListItem& info) const lvItem.pszText = NULL; } + if (info.m_mask & wxLIST_MASK_DATA) + lvItem.mask |= LVIF_PARAM ; + if ( info.m_mask & wxLIST_MASK_STATE ) { lvItem.mask |= LVIF_STATE;