是否可以创建具有不同大小按钮的工具栏? [英] Is it possible to create a toolbar having different size of buttons?

查看:61
本文介绍了是否可以创建具有不同大小按钮的工具栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MFC CToolbar类。

I am using MFC CToolbar class.

是否可以创建一个具有不同大小的工具栏其中的按钮?

Is it possible to create a toolbar  having different size of buttons within it?

在资源编辑器中,如果我更改工具栏按钮的大小,则该工具栏中所有按钮的大小将更新为相同大小。

In resource editor if I change the size of a toolbar button, the size of all the buttons in that toolbar are getting updated to same size.




推荐答案

是的,你可以使用SetButtonInfo。

Yes, you can use SetButtonInfo.

以下是一个示例:

http ://forums.codeguru.com/showthread.php?479956-工具栏按钮大小

问候,Guido


这篇关于是否可以创建具有不同大小按钮的工具栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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