CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - h.3
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Button control
ComboBox
EditBox
TreeView
Static control
PropertySheet
RichEdit
ListView/ListBox
Menu control
ToolBar
StatusBar
Dialog_Window
Other
Tab Control
Search - h.3 - List
[
ToolBar
]
toolbartest
DL : 0
我见过人家的一些工具栏,各有特色,但不人性化. 基于此,我在前人的基础上作了一些改动.使其使用起来和VC中标准的CToolBar有什么两样 主要功能: 能显示24位色(含)以下的各尺寸图标 能设置背景色或背景图 1 将ToolBarEx.cpp和ToolBarEx.h加入到工程 2 在MainFrame.h中包含对ToolBarEx.h的引用 3 将原CToolBar m_wndToolBar改为CToolBarEx m_wndToolBar 4 在VC中用16色设计按钮位置\尺寸\及与菜单的关联等 5 将自己设计的真彩按钮位图(不一定真彩,16色也可)替换掉Res文件夹下的对应位图 注意:在VC中设计的按钮个数和按钮尺寸一定要与替换位图相对应,替换位图中图标应连续放置不要加分隔线 6 选择Build All 你可以在适当的地方加入修改背景色或背景图片的代码,m_wndToolBar.SetBKColor(UINT) 或m_wndToolBar.Setbk.SetBKImage(UINT) -I have seen people' s toolbar, have their own characteristics, but not humane. Based on this, I made some changes on the basis of the previous. Make use VC standard CToolBar what two main functions: to 24 color (inclusive) following the size of the icon can set the background color or background image one will ToolBarEx.cpp to join ToolBarEx.h works 2 contains MainFrame.h in the reference to three original pairs ToolBarEx.h CToolBar m_wndToolBar change CToolBarEx m_wndToolBar 4 in the VC using 16-color design button position \ size \ and is associated with the menu and other design true color of the button bitmap (not necessarily true color, 16 colors also available) replaced Res file folder corresponding bitmap Note: the number of buttons and button size design in VC must replace the bitmap corresponds to replace the bitmap of the icon should be placed consecutively and do not add separator 6 Build All you can join in the appropriate place to modify the background color or backgrou
Date
: 2025-12-17
Size
: 62kb
User
:
hasia
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.