右边:
void CMyExploreView::EnableImages()
{// Get the handle to the system image list, for our icons
HIMAGELIST hImageList;
SHFILEINFO sfi;
hImageList = (HIMAGELIST)SHGetFileInfo((LPCSTR)_T("C:\\"),
0,
&sfi,
sizeof(SHFILEINFO),
SHGFI_SYSICONINDEX | SHGFI_SMALLICON);
// Attach ImageList to ListView
CListCtrl &RightList=GetListCtrl();
RightList.SendMessage(LVM_SETIMAGELIST,(WPARAM) LVSIL_SMALL,(LPARAM)hImageList);
}
左边:
void CLeftView::EnableImages()
{// Get the handle to the system image list, for our icons
// Get the handle to the system image list, for our icons
HIMAGELIST hImageList;
SHFILEINFO sfi;