From 7c3928159c797274e504eb810dc54aefa1a54169 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 8 Mar 2005 00:40:06 +0000 Subject: [PATCH] honour stateMask in GetItem() too (patch 1153451) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index b3894f1461..65ed0d1182 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -728,8 +728,7 @@ bool wxListCtrl::GetItem(wxListItem& info) const if ( info.m_mask & wxLIST_MASK_STATE ) { lvItem.mask |= LVIF_STATE; - // the other bits are hardly interesting anyhow - lvItem.stateMask = LVIS_SELECTED | LVIS_FOCUSED; + wxConvertToMSWFlags(0, info.m_stateMask, lvItem); } bool success = ListView_GetItem((HWND)GetHWND(), &lvItem) != 0; -- 2.45.2