Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Creating the Image Lists

Creating the Image Lists

Creating image lists is the same whether you use CListView or CListCtrl.

Note Note

You only need image lists if your list control includes the LVS_ICON style.

Use class CImageList to create one or more image lists (for full-size icons, small icons, and states). See CImageList, and see List View Image Lists in the Windows SDK.

Call CListCtrl::SetImageList for each image list; pass a pointer to the appropriate CImageList object.

Community Additions

© 2015 Microsoft