Hi,
i am trying to use a image in a listview item but the image seems to not show up,
im using msvc++6 and in the resource view it shows the correct icon, so that seems to be loading, here is how i am doing it

Code:

	memset(&lvCol,0,sizeof(lvCol));

	lvCol.mask =			LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM;
	lvCol.cx =				0x90;
	lvCol.pszText =			"UserName";



	hwndNameList = CreateWindowEx(WS_EX_STATICEDGE | WS_EX_CLIENTEDGE, WC_LISTVIEW , "" ,
					WS_CHILD | WS_VISIBLE | LVS_REPORT | LVS_SHOWSELALWAYS | LVS_ICON ,
					660 , 5 ,
					120 , 480 ,
					hwnd,
					(HMENU) ID_LISTVIEW,
					(HINSTANCE)GetWindowLong(hwnd , GWL_HINSTANCE),
					NULL);



	hSmallIcons = ImageList_Create(GetSystemMetrics(SM_CXSMICON), 
    	GetSystemMetrics(SM_CYSMICON), ILC_MASK, 1, 1); 
	hUserIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICONUSER));

	ImageList_AddIcon(hSmallIcons, hUserIcon);
	ListView_SetImageList(hwndNameList, hSmallIcons, LVSIL_SMALL); 

	lvItem.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM | LVIF_STATE; 
	lvItem.iItem=0;                     
	lvItem.pszText="test";               
	lvItem.cchTextMax=512;   
	lvItem.iImage=0;                    
    	SendMessage(hwndNameList,LVM_INSERTITEM,0,(LPARAM)&lvItem);
if any one can see from this as to why its not working i would much appreciate it, thanks