X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd2df130f8162dc2cf9794c1507cd4bddce53910..2165ad93a2fc73d74d933570e095191281b9045f:/src/msw/listctrl.cpp?ds=sidebyside diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 99168339d9..f19fcfb670 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -21,7 +21,7 @@ #endif #ifndef WX_PRECOMP -#include "wx.h" +#include "wx/wx.h" #endif #if defined(__WIN95__) @@ -31,13 +31,15 @@ #include "wx/msw/private.h" -#ifndef __GNUWIN32__ +#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__) #include #endif +#ifndef __TWIN32__ #ifdef __GNUWIN32__ #include "wx/msw/gnuwin32/extra.h" #endif +#endif static void wxConvertToMSWListItem(const wxListCtrl *ctrl, wxListItem& info, LV_ITEM& tvItem); static void wxConvertFromMSWListItem(const wxListCtrl *ctrl, wxListItem& info, LV_ITEM& tvItem, HWND getFullInfo = 0); @@ -482,6 +484,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;