本文整理汇总了C++中CImageList::Create方法的典型用法代码示例。如果您正苦于以下问题:C++ CImageList::Create方法的具体用法?C++ CImageList::Create怎么用?C++ CImageList::Create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CImageList
的用法示例。
在下文中一共展示了CImageList::Create方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetAllIcons
void CSearchParamsWnd::SetAllIcons()
{
CImageList iml;
iml.Create(16, 16, theApp.m_iDfltImageListColorFlags | ILC_MASK, 0, 1);
iml.Add(CTempIconLoader(_T("SearchMethod_KadServer")));
iml.Add(CTempIconLoader(_T("SearchMethod_SERVER")));
iml.Add(CTempIconLoader(_T("SearchMethod_GLOBAL")));
iml.Add(CTempIconLoader(_T("SearchMethod_KADEMLIA")));
iml.Add(CTempIconLoader(_T("SearchMethod_FILEDONKEY")));
m_ctlMethod.SetImageList(&iml);
m_imlSearchMethods.DeleteImageList();
m_imlSearchMethods.Attach(iml.Detach());
iml.Create(16, 16, theApp.m_iDfltImageListColorFlags | ILC_MASK, 0, 1);
iml.Add(CTempIconLoader(_T("SearchFileType_Any")));
iml.Add(CTempIconLoader(_T("SearchFileType_Archive")));
iml.Add(CTempIconLoader(_T("SearchFileType_Audio")));
iml.Add(CTempIconLoader(_T("SearchFileType_CDImage")));
iml.Add(CTempIconLoader(_T("SearchFileType_Picture")));
iml.Add(CTempIconLoader(_T("SearchFileType_Program")));
iml.Add(CTempIconLoader(_T("SearchFileType_Video")));
iml.Add(CTempIconLoader(_T("SearchFileType_Document")));
iml.Add(CTempIconLoader(_T("AABCollectionFileType")));
m_ctlFileType.SetImageList(&iml);
m_imlFileType.DeleteImageList();
m_imlFileType.Attach(iml.Detach());
}
示例2: OnInit
void CEditDelayed::OnInit(CHeaderCtrl* pColumnHeader, CArray<int, int>* paIgnoredColums)
{
SetEditRect(false);
CRect rectWindow;
GetClientRect(rectWindow);
m_pctrlColumnHeader = pColumnHeader;
m_hCursor = LoadCursor(NULL, IDC_ARROW);
m_nCurrentColumnIdx = 0;
CImageList* pImageList = new CImageList();
pImageList->Create(16, 16, theApp.m_iDfltImageListColorFlags | ILC_MASK, 0, 1);
if (pColumnHeader != NULL)
pImageList->Add(CTempIconLoader(_T("SEARCHEDIT")));
else
pImageList->Add(CTempIconLoader(_T("KADNODESEARCH")));
m_iwColumn.SetImageList(pImageList);
m_iwColumn.Create(_T(""), WS_CHILD | WS_VISIBLE, CRect(0, 0, ICON_LEFTSPACE, rectWindow.bottom), this, 1);
pImageList = new CImageList();
pImageList->Create(16, 16, theApp.m_iDfltImageListColorFlags | ILC_MASK, 0, 1);
pImageList->Add(CTempIconLoader(_T("FILTERCLEAR1")));
pImageList->Add(CTempIconLoader(_T("FILTERCLEAR2")));
m_iwReset.SetImageList(pImageList);
m_iwReset.Create(_T(""), WS_CHILD , CRect(0, 0, ICON_LEFTSPACE, rectWindow.bottom), this, 1);
if (paIgnoredColums != NULL)
m_aIgnoredColums.Copy(*paIgnoredColums);
ShowColumnText(true);
}
示例3: ChangeToolbarBitmap
void CMuleToolbarCtrl::ChangeToolbarBitmap(const CString& path, bool bRefresh)
{
bool bResult = false;
CImageList ImageList;
CEnBitmap Bitmap;
if (!path.IsEmpty() && Bitmap.LoadImage(path))
{
BITMAP bm = {0};
Bitmap.GetObject(sizeof(bm), &bm);
if (bm.bmWidth == NUM_BUTTON_BITMAPS*m_sizBtnBmp.cx && bm.bmHeight == m_sizBtnBmp.cy)
{
bool bAlpha = bm.bmBitsPixel > 24;
if (ImageList.Create(m_sizBtnBmp.cx, bm.bmHeight, bAlpha ? ILC_COLOR32 : (theApp.m_iDfltImageListColorFlags | ILC_MASK), 0, 1))
{
ImageList.Add(&Bitmap, bAlpha ? 0xFF000000 : RGB(255, 0, 255));
CImageList* pimlOld = SetImageList(&ImageList);
ImageList.Detach();
if (pimlOld)
pimlOld->DeleteImageList();
bResult = true;
}
}
Bitmap.DeleteObject();
}
// if image file loading or image list creation failed, create default image list.
if (!bResult)
{
// load from icon ressources
ImageList.Create(m_sizBtnBmp.cx, m_sizBtnBmp.cy, theApp.m_iDfltImageListColorFlags | ILC_MASK, 0, 1);
ImageList.Add(CTempIconLoader(_T("CONNECT"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("DISCONNECT"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("STOPCONNECTING"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("KADEMLIA"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("SERVER"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("TRANSFER"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("SEARCH"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("SharedFiles"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("MESSAGES"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("IRC"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("STATISTICS"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("PREFERENCES"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("TOOLS"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ImageList.Add(CTempIconLoader(_T("HELP"), m_sizBtnBmp.cx, m_sizBtnBmp.cy));
ASSERT( ImageList.GetImageCount() == NUM_BUTTON_BITMAPS );
CImageList* pimlOld = SetImageList(&ImageList);
ImageList.Detach();
if (pimlOld)
pimlOld->DeleteImageList();
}
if (bRefresh)
{
UpdateBackground();
Invalidate();
Refresh();
}
}
示例4: InitializeDefaultPanes
void CMainFrame::InitializeDefaultPanes(void)
{
CRect rcClient;
this->GetClientRect(&rcClient);
CRect rcFloat(0,0,400,200);
CRect rcDock(0,0,220,/*rcClient.Width()-200*/200);
CRect rcFileTreeDock(0,0,220,10);
CRect rcItemListDock(0,0,150,300);
CRect rcvgmfileDock(0,0,220,/*rcClient.Width()-200*/300);
CRect rcCollListDock(150,150,220,/*rcClient.Width()-200*/100);
CRect rcLogListDock(0,0,400,80);
//CRect rcDock();
CImageList ilIcons;
ilIcons.Create(16, 16, ILC_MASK | ILC_COLOR24, 0, 0);
CBitmap bmpIcons;
bmpIcons.LoadBitmap(IDB_TAB_ICONS);
ilIcons.Add((HBITMAP)bmpIcons, RGB(0,255,0));
HWND hWndFirst =
//CreateVGMFilesTreeViewPane(VGMFilesView, _T("Detected VGM Files"), ilIcons.ExtractIcon(10), rcFloat, rcvgmfileDock, NULL);
CreateVGMFileListViewPane(theVGMFileListView, _T("Detected Music Files"), ilIcons.ExtractIcon(10), rcFloat, rcvgmfileDock, NULL);
CreateFileListViewPane(rawFileListView, _T("Scanned Files"), ilIcons.ExtractIcon(6), rcFloat, rcFileTreeDock, NULL);
CreateVGMCollListViewPane(theVGMCollListView, _T("Collections"), ilIcons.ExtractIcon(10), rcFloat, rcCollListDock, NULL);
//this->CreatePlainTextOutputPane(m_OutputView, _T("Output"), ilIcons.ExtractIcon(3), rcFloat, rcDock, hWndFirst);
//this->CreatePlainTextOutputPane(m_FindResultsView, _T("Find Results 1"), ilIcons.ExtractIcon(11), rcFloat, rcDock, hWndFirst);
CreateCollDialogPane(theCollDialog, _T("Coll Info"), rcFloat, rcDock, NULL);
CreateLogListViewPane(theLogListView, _T("Logs"), ilIcons.ExtractIcon(10), rcFloat, rcLogListDock, NULL);
}
示例5: InitToolBar
int CGuiFrameWnd::InitToolBar(UINT uIDMenu)
{
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC,CRect(0,0,0,0),uIDMenu) ||
!m_wndToolBar.LoadToolBar(uIDMenu))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
// new code: Serge Koroleuve
IMAGEINFO ii;
m_wndToolBar.GetToolBarCtrl().GetImageList()->GetImageInfo(0, &ii);
int cx = ii.rcImage.right - ii.rcImage.left;
int cy = ii.rcImage.bottom - ii.rcImage.top;
int nCount = m_wndToolBar.GetToolBarCtrl().GetImageList()->GetImageCount();
CImageList imageList;
CBitmap bitmap;
bitmap.LoadBitmap(uIDMenu);
imageList.Create(cx, cy, ILC_COLORDDB|ILC_MASK, nCount, 0);
imageList.Add(&bitmap, RGB(192,192,192));
m_wndToolBar.SendMessage(TB_SETIMAGELIST, 0, (LPARAM)imageList.m_hImageList);
imageList.Detach();
bitmap.Detach();
// end of new code
return 0;
}
示例6: fDisableImgListRemap
CPlayerToolBar::CPlayerToolBar()
: fDisableImgListRemap(false)
, m_pButtonsImages(NULL)
, m_hDXVAIcon(NULL)
{
HBITMAP hBmp = CMPCPngImage::LoadExternalImage(L"gpu", IDB_DXVA_ON, IMG_TYPE::UNDEF);
BITMAP bm = { 0 };
::GetObject(hBmp, sizeof(bm), &bm);
if (CMPCPngImage::FileExists(CString(L"gpu")) && (bm.bmHeight > 32 || bm.bmWidth > 32)) {
hBmp = CMPCPngImage::LoadExternalImage(L"", IDB_DXVA_ON, IMG_TYPE::UNDEF);
::GetObject(hBmp, sizeof(bm), &bm);
}
if (bm.bmWidth <= 32 && bm.bmHeight <= 32) {
CBitmap *bmp = DNew CBitmap();
bmp->Attach(hBmp);
CImageList *pButtonDXVA = DNew CImageList();
pButtonDXVA->Create(bm.bmWidth, bm.bmHeight, ILC_COLOR32 | ILC_MASK, 1, 0);
pButtonDXVA->Add(bmp, static_cast<CBitmap*>(NULL));
m_hDXVAIcon = pButtonDXVA->ExtractIcon(0);
delete pButtonDXVA;
delete bmp;
}
iDXVAIconHeight = bm.bmHeight;
iDXVAIconWidth = bm.bmWidth;
DeleteObject(hBmp);
}
示例7: ScaleToFit
HICON CXTPIconHandle::ScaleToFit(HICON hIcon, CSize desiredExtent)
{
if (desiredExtent == CSize(0))
{
// invalid arg
return NULL;
}
CSize realExtent = GetExtent(hIcon);
if (realExtent == CSize(0))
{
// icon destroyed or not created yet
return NULL;
}
// ensure icon retains aspect after scaling
int delta = desiredExtent.cx * realExtent.cy - desiredExtent.cy * realExtent.cx;
if (delta < 0)
{
desiredExtent.cy = MulDiv(realExtent.cy, desiredExtent.cx, realExtent.cx);
}
else
if (delta > 0)
{
desiredExtent.cx = MulDiv(realExtent.cx, desiredExtent.cy, realExtent.cy);
}
// scale the icon
CImageList images;
VERIFY(images.Create(desiredExtent.cx, desiredExtent.cy, ILC_COLOR32 | ILC_MASK, 1, 1));
images.Add(hIcon);
return images.ExtractIcon(0);
}
示例8: Init
void CDownloadClientsCtrl::Init()
{
SetName(_T("DownloadClientsCtrl"));
CImageList ilDummyImageList; //dummy list for getting the proper height of listview entries
ilDummyImageList.Create(1, theApp.GetSmallSytemIconSize().cy,theApp.m_iDfltImageListColorFlags|ILC_MASK, 1, 1);
SetImageList(&ilDummyImageList, LVSIL_SMALL);
ASSERT( (GetStyle() & LVS_SHAREIMAGELISTS) == 0 );
ilDummyImageList.Detach();
SetExtendedStyle(LVS_EX_FULLROWSELECT);
InsertColumn(0, GetResString(IDS_QL_USERNAME), LVCFMT_LEFT, 165);
InsertColumn(1, GetResString(IDS_CD_CSOFT), LVCFMT_LEFT, 90);
InsertColumn(2, GetResString(IDS_FILE), LVCFMT_LEFT, 235);
InsertColumn(3, GetResString(IDS_DL_SPEED), LVCFMT_LEFT, 65);
InsertColumn(4, GetResString(IDS_AVAILABLEPARTS), LVCFMT_LEFT, 150);
InsertColumn(5, GetResString(IDS_CL_TRANSFDOWN), LVCFMT_LEFT, 115);
InsertColumn(6, GetResString(IDS_CL_TRANSFUP), LVCFMT_LEFT, 115);
InsertColumn(7, GetResString(IDS_META_SRCTYPE), LVCFMT_LEFT, 60);
SetAllIcons();
Localize();
LoadSettings();
// Barry - Use preferred sort order from preferences
SetSortArrow();
}
示例9: OnInitDialog
BOOL CFindDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_FindMsg = RegisterWindowMessage(FINDMSGSTRING);
m_FindCombo.LoadHistory(_T("Software\\TortoiseGit\\History\\Find"), _T("Search"));
m_FindCombo.SetFocus();
this->AddAnchor(IDC_STATIC_FIND, TOP_LEFT, TOP_RIGHT);
this->AddAnchor(IDC_FINDCOMBO, TOP_LEFT, TOP_RIGHT);
this->AddAnchor(IDOK, TOP_RIGHT);
this->AddAnchor(IDCANCEL, TOP_RIGHT);
this->AddAnchor(IDC_STATIC_GROUP_REF, TOP_LEFT, BOTTOM_RIGHT);
this->AddAnchor(IDC_STATIC_FILTER, BOTTOM_LEFT);
this->AddAnchor(IDC_EDIT_FILTER, BOTTOM_LEFT, BOTTOM_RIGHT);
this->AddAnchor(IDC_LIST_REF, TOP_LEFT, BOTTOM_RIGHT);
this->AddOthersToAnchor();
EnableSaveRestore(_T("FindDlg"));
CImageList *imagelist = new CImageList();
imagelist->Create(IDB_BITMAP_REFTYPE,16,3,RGB(255,255,255));
this->m_ctrlRefList.SetImageList(imagelist,LVSIL_SMALL);
CRect rect;
m_ctrlRefList.GetClientRect(&rect);
this->m_ctrlRefList.InsertColumn(0,_T("Ref"),0, rect.Width()-50);
g_Git.GetRefList(m_RefList);
AddToList();
return FALSE;
}
示例10: SetIconsList
//***************************************************************************************
BOOL CBCGPropertySheet::SetIconsList (UINT uiImageListResID, int cx,
COLORREF clrTransparent)
{
ASSERT_VALID(this);
LPCTSTR lpszResourceName = MAKEINTRESOURCE (uiImageListResID);
ASSERT(lpszResourceName != NULL);
HBITMAP hbmp = (HBITMAP) ::LoadImage (
AfxGetResourceHandle (),
lpszResourceName,
IMAGE_BITMAP,
0, 0,
LR_CREATEDIBSECTION);
if (hbmp == NULL)
{
TRACE(_T("Can't load bitmap: %x\n"), uiImageListResID);
return FALSE;
}
CImageList icons;
m_bAlphaBlendIcons = FALSE;
BITMAP bmpObj;
::GetObject (hbmp, sizeof (BITMAP), &bmpObj);
UINT nFlags = (clrTransparent == (COLORREF) -1) ? 0 : ILC_MASK;
switch (bmpObj.bmBitsPixel)
{
case 4:
default:
nFlags |= ILC_COLOR4;
break;
case 8:
nFlags |= ILC_COLOR8;
break;
case 16:
nFlags |= ILC_COLOR16;
break;
case 24:
nFlags |= ILC_COLOR24;
break;
case 32:
nFlags |= ILC_COLOR32;
m_bAlphaBlendIcons = TRUE;
break;
}
icons.Create (cx, bmpObj.bmHeight, nFlags, 0, 0);
icons.Add (CBitmap::FromHandle (hbmp), clrTransparent);
SetIconsList (icons);
return TRUE;
}
示例11: Init
void CClientListCtrl::Init()
{
SetName(_T("ClientListCtrl"));
CImageList ilDummyImageList; //dummy list for getting the proper height of listview entries
ilDummyImageList.Create(1, theApp.GetSmallSytemIconSize().cy,theApp.m_iDfltImageListColorFlags|ILC_MASK, 1, 1);
SetImageList(&ilDummyImageList, LVSIL_SMALL);
ASSERT( (GetStyle() & LVS_SHAREIMAGELISTS) == 0 );
ilDummyImageList.Detach();
SetExtendedStyle(LVS_EX_FULLROWSELECT);
InsertColumn(0,GetResString(IDS_QL_USERNAME),LVCFMT_LEFT,150,0);
InsertColumn(1,GetResString(IDS_CL_UPLOADSTATUS),LVCFMT_LEFT,150,1);
InsertColumn(2,GetResString(IDS_CL_TRANSFUP),LVCFMT_LEFT,150,2);
InsertColumn(3,GetResString(IDS_CL_DOWNLSTATUS),LVCFMT_LEFT,150,3);
InsertColumn(4,GetResString(IDS_CL_TRANSFDOWN),LVCFMT_LEFT,150,4);
InsertColumn(5,GetResString(IDS_CD_CSOFT),LVCFMT_LEFT,150,5);
InsertColumn(6,GetResString(IDS_CONNECTED),LVCFMT_LEFT,150,6);
CString coltemp;
coltemp=GetResString(IDS_CD_UHASH);coltemp.Remove(':');
InsertColumn(7,coltemp,LVCFMT_LEFT,150,7);
SetAllIcons();
Localize();
LoadSettings();
SetSortArrow();
SortItems(SortProc, GetSortItem()+ (GetSortAscending()? 0:100));
}
示例12: OnInitDialog
BOOL CDialogEpsGraph::OnInitDialog()
{
CDialog::OnInitDialog();
CImageList* pImageList = new CImageList();
pImageList->Create(16,16,ILC_COLOR|ILC_MASK, 4, 4);
pImageList->Add(AfxGetApp()->LoadIcon(IDI_ICON_GREEN));
pImageList->Add(AfxGetApp()->LoadIcon(IDI_ICON_RED));
pImageList->Add(AfxGetApp()->LoadIcon(IDI_ICON_BLUE));
pImageList->Add(AfxGetApp()->LoadIcon(IDI_ICON_YELLOW));
m_Tab.SetImageList(pImageList);
m_Tab.InsertItem(0, "EPS", 0);
m_Tab.InsertItem(1, "ROC", 1);
m_Tab.InsertItem(2, "ROE", 2);
m_pGraph = new CViewGraph();
m_pGraph->Create(NULL, NULL, WS_CHILD, CRect(0,0,1,1), this, 23457);
m_pGraph->ShowWindow(SW_SHOW);
InitChartEPS();
Resize();
return TRUE;
}
示例13: Init
void CQueueListCtrl::Init()
{
SetName(_T("QueueListCtrl"));
CImageList ilDummyImageList; //dummy list for getting the proper height of listview entries
ilDummyImageList.Create(1, theApp.GetSmallSytemIconSize().cy,theApp.m_iDfltImageListColorFlags|ILC_MASK, 1, 1);
SetImageList(&ilDummyImageList, LVSIL_SMALL);
ASSERT( (GetStyle() & LVS_SHAREIMAGELISTS) == 0 );
ilDummyImageList.Detach();
SetExtendedStyle(LVS_EX_FULLROWSELECT);
InsertColumn(0,GetResString(IDS_QL_USERNAME),LVCFMT_LEFT,150,0);
InsertColumn(1,GetResString(IDS_FILE),LVCFMT_LEFT,275,1);
InsertColumn(2,GetResString(IDS_FILEPRIO),LVCFMT_LEFT,110,2);
InsertColumn(3,GetResString(IDS_QL_RATING),LVCFMT_LEFT,60,3);
InsertColumn(4,GetResString(IDS_SCORE),LVCFMT_LEFT,60,4);
InsertColumn(5,GetResString(IDS_ASKED),LVCFMT_LEFT,60,5);
InsertColumn(6,GetResString(IDS_LASTSEEN),LVCFMT_LEFT,110,6);
InsertColumn(7,GetResString(IDS_ENTERQUEUE),LVCFMT_LEFT,110,7);
InsertColumn(8,GetResString(IDS_BANNED),LVCFMT_LEFT,60,8);
InsertColumn(9,GetResString(IDS_UPSTATUS),LVCFMT_LEFT,100,9);
//==>Modversion [shadow2004]
#ifdef MODVERSION
InsertColumn(10,GetResString(IDS_CLIENTSOFTWARE),LVCFMT_LEFT,100,10);
#endif //Modversion
//<==Modversion [shadow2004]
SetAllIcons();
Localize();
LoadSettings();
// Barry - Use preferred sort order from preferences
SetSortArrow();
SortItems(SortProc, GetSortItem() + (GetSortAscending() ? 0:100));
}
示例14: addFile
inline bool addFile(CListCtrl *lFiles, string filename, __int64 size){
char buffer[16];
HICON ico = NULL;
int ico_id;
CImageList *imgLst = NULL;
if(size >= (__int64)4*1024*1024*1024){
MessageBox(0, loadString(IDS_TOO_BIG_FILE), "KGB Archiver", 0);
return false;
}
ico = getIcon(filename);
if(ico != NULL){
imgLst = lFiles->GetImageList(LVSIL_SMALL);
if(imgLst == NULL){
imgLst = new CImageList();
imgLst->Create(16, 16, ILC_COLORDDB, 0, INT_MAX);
imgLst->SetBkColor(0x00FFFFFF);
}
ico_id = imgLst->Add(ico);
lFiles->SetImageList(imgLst, LVSIL_SMALL);
lFiles->InsertItem(lFiles->GetItemCount(), "", ico_id);
}else
lFiles->InsertItem(lFiles->GetItemCount(), "");
lFiles->SetItemText(lFiles->GetItemCount()-1, 0, filename.c_str());
sprintf(buffer, "%s", convertUnits(size));
lFiles->SetItemText(lFiles->GetItemCount()-1, 1, buffer);
return true;
}
示例15: GetImageList
CImageList CObjectUIHandler::GetImageList()
{
CImageList imageList;
imageList.Create(
64, 32,
// 16, 16,
ILC_COLOR8|ILC_MASK,
sizeof(anIconIDs)/sizeof(anIconIDs[0]),
1);
for ( int i=0; i < sizeof(anIconIDs)/sizeof(anIconIDs[0]); i++ )
{
HICON hIcon = ::LoadIcon(
_Module.GetResourceInstance(),
MAKEINTRESOURCE(anIconIDs[i])
);
/* Uncomment this if you want 32x32 icon.
HICON hIcon = (HICON)::LoadImage(
_Module.GetResourceInstance(),
MAKEINTRESOURCE(anIconIDs[i]),
IMAGE_ICON,
32, 32, LR_DEFAULTCOLOR
);
*/
imageList.AddIcon( hIcon );
}
return imageList;
}