X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a61d40115f85d210d81226cf3a14fb134b347b82..71e57cd6506760f7ca0e3195a5ecf99d78a77be9:/src/msw/listctrl.cpp?ds=sidebyside diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 37cc646f05..9bb556cf46 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -48,7 +48,9 @@ #if defined(__WXWINCE__) #include #include - #include + #if _WIN32_WCE < 400 + #include + #endif #endif // include "properly" @@ -1563,6 +1565,9 @@ long wxListCtrl::InsertItem(wxListItem& info) { // take copy of attributes data->attr = new wxListItemAttr(*info.GetAttributes()); + + // and remember that we have some now... + m_hasAnyAttr = TRUE; } }; @@ -1808,7 +1813,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) event.m_col = nmHDR->iItem; break; -#ifdef __WXWINCE__ +#if defined(__WXWINCE__) && _WIN32_WCE < 400 case GN_CONTEXTMENU: #endif //__WXWINCE__ case NM_RCLICK: @@ -1822,7 +1827,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) // where did the click occur? POINT ptClick; -#ifdef __WXWINCE__ +#if defined(__WXWINCE__) && _WIN32_WCE < 400 if(nmhdr->code == GN_CONTEXTMENU) { ptClick = ((NMRGINFO*)nmhdr)->ptAction; } else @@ -2142,7 +2147,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) event.m_item.m_data = GetItemData(iItem); break; -#ifdef __WXWINCE__ +#if defined(__WXWINCE__) && _WIN32_WCE < 400 case GN_CONTEXTMENU: #endif //__WXWINCE__ case NM_RCLICK: @@ -2157,7 +2162,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) LV_HITTESTINFO lvhti; wxZeroMemory(lvhti); -#ifdef __WXWINCE__ +#if defined(__WXWINCE__) && _WIN32_WCE < 400 if(nmhdr->code == GN_CONTEXTMENU) { lvhti.pt = ((NMRGINFO*)nmhdr)->ptAction; } else