多行工具栏创建 [英] Multi line toolbar creation
问题描述
我有一个带有10个控件的工具栏,但现在我想在同一工具栏上添加5个其他控件,并换行.
在现有行为中,工具栏的创建是使用Create()函数完成的.阅读了CToolbar的文章后,我知道我们必须将TBSTYLE_WRAPABLE作为样式参数传递,但是在这种情况下,如何设置控件的样式为TBSTYLE_WRAPABLE?不会破坏现有的行为.
CreateEx()是此处的函数,我们可以在创建工具栏时将"TBSTYLE_WRAPABLE"作为参数传递.
I have a toolbar with 10 controls but now i want to add 5more controls on the same toolbar with in a new line.
in the existing behaviour, the tool bar creation is done using the Create() function. After reading the CToolbar articals i came to know that we have to pass the TBSTYLE_WRAPABLE as a style parameter but in this case how to set the style of the control is TBSTYLE_WRAPABLE? with out distrubing the existing behaviour.
CreateEx() is the function here we can pass "TBSTYLE_WRAPABLE" as a parameter at the time of toolbar creation.
Can you please some body help me on this?
推荐答案
请看一下: ^ ]
我还没有测试过,但是实现看起来很合理...
最好的问候
Espen Harlinn
Have a look at:
a simple mfc program to create simple common controls[^]
I haven''t tested this, but the implementation looks reasonable ...
Best regards
Espen Harlinn
这篇关于多行工具栏创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!