Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CListCtrl Images`

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
0
0
US
Ok,

All I want to do is display images in my CListCtrl. What am I doing wrong? The text comes up, and there is a 16x16 box where I want my image but no image shows up! (BTW, this is in report view)

Code:
[blue]
	CImageList myList;
	myList.Create(16,16,ILC_COLOR32,0,2);
	myList.Add(AfxGetApp()->LoadIcon(ICON_UP));
	myList.Add(AfxGetApp()->LoadIcon(ICON_DOWN));
	List.SetImageList(&myList,LVSIL_SMALL);

	ListInsertItem(0,"Test",1);
[/blue]
[green]//The number "1" in the InsertItem is supposed to be the index of the image I want from the imgae list[/green]

Thanks,
Ron

cout << "If you don't know where you want to go, we'll make sure you get taken";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top