1. minor fixes in wxDynLib

2. added more symbols to winundef.h
3. fixed wxTextFile::IsOpen() - now it does what you'd suppose
4. listctrl now updates the item image when it changes
5. file dlg checks for an error and gives a message about it (debug only)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-07-10 00:50:16 +00:00
parent e5b110b109
commit 7cc98b3e3f
8 changed files with 108 additions and 59 deletions

View File

@@ -551,7 +551,14 @@ bool wxListCtrl::SetItem(wxListItem& info)
LV_ITEM item;
wxConvertToMSWListItem(this, info, item);
item.cchTextMax = 0;
return (ListView_SetItem(GetHwnd(), &item) != 0);
bool ok = ListView_SetItem(GetHwnd(), &item) != 0;
if ( ok && (info.m_mask & wxLIST_MASK_IMAGE) )
{
// make the change visible
ListView_Update(GetHwnd(), item.iItem);
}
return ok;
}
long wxListCtrl::SetItem(long index, int col, const wxString& label, int imageId)