m_imagelist.Create(,,ILC_COLOR24|ILC_MASK,,);
CBitmap bmp;
for(int i=;i<;i++)
{
int a= bmp.LoadBitmapW(IDB_BITMAP1+i);
a= m_imagelist.Add(&bmp,RGB(,,));
a=bmp.DeleteObject();
} const UINT t[] = {,,,,,,,,,};
m_toolbar.CreateEx(this);
m_toolbar.SetButtons(t,);
m_toolbar.SetSizes(CSize(,),CSize(,));
m_toolbar.SetButtonText(,_T("文件管理"));
m_toolbar.SetButtonText(,_T("屏幕监控"));
m_toolbar.SetButtonText(,_T("超级终端"));
m_toolbar.SetButtonText(,_T("进程管理"));
m_toolbar.SetButtonText(,_T("服务管理"));
m_toolbar.SetButtonText(,_T("卸载主机"));
m_toolbar.SetButtonText(,_T("生成客户"));
m_toolbar.SetButtonText(,_T("程序设置"));
m_toolbar.SetButtonText(,_T("关于软件"));
m_toolbar.GetToolBarCtrl().SetImageList(&m_imagelist); RepositionBars(AFX_IDW_CONTROLBAR_FIRST,AFX_IDW_CONTROLBAR_LAST,);
需要创建CToolBar 和 CImageList