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:
@@ -728,8 +728,7 @@ bool wxListCtrl::GetItem(wxListItem& info) const
|
|||||||
if ( info.m_mask & wxLIST_MASK_STATE )
|
if ( info.m_mask & wxLIST_MASK_STATE )
|
||||||
{
|
{
|
||||||
lvItem.mask |= LVIF_STATE;
|
lvItem.mask |= LVIF_STATE;
|
||||||
// the other bits are hardly interesting anyhow
|
wxConvertToMSWFlags(0, info.m_stateMask, lvItem);
|
||||||
lvItem.stateMask = LVIS_SELECTED | LVIS_FOCUSED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool success = ListView_GetItem((HWND)GetHWND(), &lvItem) != 0;
|
bool success = ListView_GetItem((HWND)GetHWND(), &lvItem) != 0;
|
||||||
|
Reference in New Issue
Block a user