honour stateMask in GetItem() too (patch 1153451)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-08 00:40:06 +00:00
parent 116627da19
commit 7c3928159c

View File

@ -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;