CBitmap bm;
bm.LoadBitmap(ILC_COLOR8);
CImageList m_ilToolBar;
m_ilToolBar.Create(16,16,ILC_COLOR8, 4, 4);
m_ilToolBar.Add(&bm, RGB(0, 0, 0));
CCeCommandBar *pBar = (CCeCommandBar *)FromHandle(m_hCommandBar);
pBar->GetToolBarCtrl().SetImageList(&m_ilToolBar);