if ( !m_hWnd )
{
- wxLogError(_("Can't create list control window, check "
- "that comctl32.dll is installed."));
+ wxLogError(_("Can't create list control window, check that comctl32.dll is installed."));
return FALSE;
}
{
if ( ListView_DeleteColumn(GetHwnd(), 0) == 0 )
{
- wxLogLastError("ListView_DeleteColumn");
+ wxLogLastError(wxT("ListView_DeleteColumn"));
return FALSE;
}
findInfo.flags = LVFI_STRING;
if ( partial )
- findInfo.flags |= LVFI_STRING;
+ findInfo.flags |= LVFI_PARTIAL;
findInfo.psz = WXSTRINGCAST str;
return ListView_FindItem(GetHwnd(), (int) start, & findInfo);
event.m_code = wxCharCodeMSWToWX(wVKey);
}
- event.m_item.m_data = GetItemData(lItem);
+ if ( lItem != -1 )
+ {
+ // fill the other fields too
+ event.m_item.m_text = GetItemText(lItem);
+ event.m_item.m_data = GetItemData(lItem);
+ }
}
break;
eventType = wxEVT_COMMAND_LIST_ITEM_ACTIVATED;
event.m_itemIndex = nmLV->iItem;
+ event.m_item.m_text = GetItemText(nmLV->iItem);
event.m_item.m_data = GetItemData(nmLV->iItem);
break;