如何用CListCtrl::SetItemState设置listctrl的图标
编号:QA001573
建立日期: 1999年8月23日 最后修改日期:1999年8月23日
所属类别:
pdiy:
系统:WINT9x,Win2000
开发软件VC6.0或VB6.0(主要MFC)
如何用 CListCtrl::SetItemState设置listctrl的图标(image)。
回答:
图标来自ImageList控件,先使用CListCtrl::SetImageList指定关联的CImageList。 CListCtrl::SetItemState需要使用LV_ITEM结构,将该结构的mask设置为LVIF_IMAGE,然后将iImage设置为图标在CImageList中的索引号。
此问题由李海回答。
| |
|
|
| |
|
|