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)
Thanks,
Ron
cout << "If you don't know where you want to go, we'll make sure you get taken";
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";