从MDI更改工具栏图标 [英] Change toolbar icon from MDI

查看:126
本文介绍了从MDI更改工具栏图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有 MDI 应用程序(带有vc ++ 6.0),带有1个工具栏,如何用新图标更改图标之一? :doh:

Hello,
I have MDI application (with vc++ 6.0) with 1 toolbar, how can i change one of icons with the new icon? :doh:

推荐答案

使用资源编辑器打开工具栏,并更新要更改的特定按钮图标.


-------

根据您的评论,您似乎想在运行时和特定按钮上执行此操作.如果是这样,您可以使用CToolBarCtrl::SetButtonInfo.只需使用TBBUTTONINFO结构设置适当的图像索引即可.
Open the toolbar using the resource editor and update the specific button-icon that you want to change.


-------

Based on your comment, it seems you want to do this at runtime and on a specific button. If so, you can use CToolBarCtrl::SetButtonInfo. Just set the appropriate image index using the TBBUTTONINFO structure.


这篇关于从MDI更改工具栏图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆