Setting or removing an image for an clistctrl item

zhaozj2021-02-16  57

Rating:

None

Zafir Anjum (View Profile) August 6, 1998

The image for anly.

m_listctrl.InsertItem (LVIF_TEXT | LVIF_IMAGE, nRow, sItemText, 0, 0, nImage, NULL); The image can later be changed by calling the SetItem () function The CListCtrl class does not have a SetImage () function..

M_ListCtrl.SetItem (0, 0, LVIF_IMAGE, NULL, NIMAGE, 0, 0); To Remove The Image, Use a value of -1 for nimage, else Nimage Should Be a Zero based index of the image in the image list .

转载请注明原文地址:https://www.9cbs.com/read-18028.html

New Post(0)