[VC++][MFC] CImageList 에서 (CListCtrl) 256 이상 색상의 이미지 사용 하기
2009. 5. 29. 04:23 in Programming/VC++ [MFC]

뭐.... 알아두면 유용할지도..
- int nWidth = 64;
- int nHeight = 64;
- int nInitial = 5;
- int nGrow = 0;
- CListCtrl listControl;
- CImageList imgList;
- CBitmap bmp;
- bmp.LoadBitmap(IDB_BMP_RESOURCE);
- imgList.Create(nWidth, nHeight, ILC_MASK | ILC_COLORDDB, nInitial, nGrow);
- imgList.Add(&bmp, RGB(255, 255, 255) /* Mask Color */);
- listControl.SetImageList(&imgList, LVSIL_NORMAL);
- listControl.SetIconSpacing(64, 92); /* Icon 들간 간격 */
- listControl.InsertItem(Item Number, Text Name, Image Number);