0
如何爲我的TBBUTTONINFO按鈕分配一個新圖像?幫助我..如何將圖標/圖像分配給tbbuttoninfo?
如何爲我的TBBUTTONINFO按鈕分配一個新圖像?幫助我..如何將圖標/圖像分配給tbbuttoninfo?
檢查了這一點:
TBBUTTONINFO tbButtonInfo;
::ZeroMemory(&tbButtonInfo, sizeof(TBBUTTONINFO));
tbButtonInfo.cbSize = sizeof(TBBUTTONINFO);
tbButtonInfo.dwMask = TBIF_IMAGE;
tbToolbar.GetButtonInfo(nId, &tbButtonInfo);
tbButtonInfo.iImage = I_IMAGENONE;
tbToolbar.SetButtonInfo(nId, &tbButtonInfo);
有關詳細信息,請檢查TBBUTTONINFO MSDN文檔。