a problem about CListCtrl
-
Hi: In ClistCtrl,I want to change the icon of some item.And I try : m_ctrlListDevice.SetItem(nItem,0,0,NULL,1,0,0,0); but nothing happen.The icon isn't changed. Why? How could I do to change the icon? Thanks Benben
Shouldn't it be:
m_ctrlListDevice.SetItem(nItem, 0, LVIF_IMAGE, "", 1, 0, 0, 0);
This assumes, of course, that
m_ctrlListDevice.SetImageList()
has been previously called and that at least two images exist in the list.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Shouldn't it be:
m_ctrlListDevice.SetItem(nItem, 0, LVIF_IMAGE, "", 1, 0, 0, 0);
This assumes, of course, that
m_ctrlListDevice.SetImageList()
has been previously called and that at least two images exist in the list.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?