在大型工具栏中添加组合框 [英] Adding combo box in large toolbar

查看:70
本文介绍了在大型工具栏中添加组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我很少在mfc的窗口的客户区域绘制不同形状的应用程序.
从工具栏中选择形状的类型.根据"\ drawShapes \ Img \ *" 文件夹中显示的图像数量动态创建形状工具栏.也就是说,如果我在文件夹中有10张图像>"\ drawShapes \ Img \ *" .然后我的工具栏包含10个用于绘制形状的按钮.

当我将形状限制为类似工具栏上的线条,矩形等形状时,应用程序运行良好.所有这些形状都正确地安装在单屏中.但是当我想从文件夹中加载25张图像到工具栏时会出现问题.工具栏的大小太长了,有些按钮可见但有些按钮不可见.屏幕上没有出现的按钮熄灭了一边,所以我没有该按钮的事件.

现在我的问题是:
1)什么是替代品?
2)是否可以滚动工具栏?
3)我们是否提供用于选择剩余按钮的组合框?最后显示附件组合以选择隐藏的组合框的按钮.

_______________________________________________________________________
所有相关的帮助,链接,代码块最欢迎

问候,

Hello All,
I Have little application to drawn different different shapes on client area of window in mfc.
Type of shape is selected from toolbar.A shape toolbar is dynamically created depends on the number of images present in "\drawShapes\Img\*" folder.That is if i have 10 images in folder "\drawShapes\Img\*".Then my toolbar contain 10 Buttons to draw a shapes.

Application run fine when i have limmited shapes.like line,rectangle ect on toolbar. All these shapes are properly fitted in sigle screen.But problem arises when i want to load 25 images from folder to toolbar.a size of toolbar is so long so some buttons Are Visible but some are not.Buttons that not comes in screen goes out side so i doesn''t get event of that button.

Now my question is :
1)What is alternative?
2)Is there possibility of scrolling toolbar?
3)Is we provide combo box for selecting remainnig buttons?like button that lastly display attach combo to select hided combo box.

_______________________________________________________________________
All related HELPS,LINKS,CODE BLOCKS Are most WELCOME

Regard,

推荐答案

像这样的事情吗?
带有嵌入式组合框的工具栏 [
Something like this perhaps?
Toolbars with embedded Combo Boxes[^]


这篇关于在大型工具栏中添加组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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