diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index b1f4aa0408..73a2997bea 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -669,7 +669,8 @@ bool wxListCtrl::GetItem(wxListItem& info) const } else { - wxConvertFromMSWListItem(GetHwnd(), info, lvItem); + // give NULL as hwnd as we already have everything we need + wxConvertFromMSWListItem(NULL, info, lvItem); } if (lvItem.pszText)