我用了Visual Toolbar ,得出两幅图,一个是全彩的一个灰度的不多说了但是如果用户涉及权限要某个工具栏的按钮取消不用,那么我的工具栏除了不用以外还需要把它底色变灰,
如果是全体变灰我试过了没问题,但是这种某个或某个变灰怎么弄?我用了如下的代码CImageList imageList;   
CBitmap bitmap;   
    
//   Create   and   set   the   normal   toolbar   image   list.   
bitmap.LoadBitmap(ID);   //IDB_BTOOLBAR  IDB_Btoolbar_blcak
imageList.Create(32,32,   ILC_COLORDDB|ILC_MASK,8,8);   
imageList.Add(&bitmap,   RGB(255,0,255));   
m_wndToolBar.SendMessage(TB_SETIMAGELIST,   0,   (LPARAM)imageList.m_hImageList);   
imageList.Detach();   
    bitmap.Detach();