如何将图标/图像分配给tbbuttoninfo?

时间:2010-08-03 02:23:53

标签: visual-c++

如何为TBBUTTONINFO按钮指定新图像?帮帮我......

1 个答案:

答案 0 :(得分:0)

检查出来:

    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文档。