文件名称:toolbartest
- 所属分类:
- 工具条
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 62kb
- 下载次数:
- 0次
- 提 供 者:
- ha***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
我见过人家的一些工具栏,各有特色,但不人性化.
基于此,我在前人的基础上作了一些改动.使其使用起来和VC中标准的CToolBar有什么两样
主要功能:
能显示24位色(含)以下的各尺寸图标
能设置背景色或背景图
1 将ToolBarEx.cpp和ToolBarEx.h加入到工程
2 在Mainfr a me.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 Mainfr a me.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
基于此,我在前人的基础上作了一些改动.使其使用起来和VC中标准的CToolBar有什么两样
主要功能:
能显示24位色(含)以下的各尺寸图标
能设置背景色或背景图
1 将ToolBarEx.cpp和ToolBarEx.h加入到工程
2 在Mainfr a me.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 Mainfr a me.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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
toolbartest\ToolBarTest\ReadMe.txt
...........\...........\使用说明.txt
...........\...........\MainFrm.h
...........\...........\Resource.h
...........\...........\StdAfx.h
...........\...........\ToolBarEx.h
...........\...........\ToolBarTest.h
...........\...........\ToolBarTestDoc.h
...........\...........\ToolBarTestView.h
...........\...........\MainFrm.cpp
...........\...........\StdAfx.cpp
...........\...........\ToolBarEx.cpp
...........\...........\ToolBarTest.cpp
...........\...........\ToolBarTestDoc.cpp
...........\...........\ToolBarTestView.cpp
...........\...........\Debug\ToolBarTest.exe
...........\...........\res\bkimage.bmp
...........\...........\...\Toolbar.bmp
...........\...........\ToolBarTest.aps
...........\...........\ToolBarTest.dsp
...........\...........\ToolBarTest.dsw
...........\...........\res\ToolBarTest.ico
...........\...........\...\ToolBarTestDoc.ico
...........\...........\ToolBarTest.ncb
...........\...........\ToolBarTest.opt
...........\...........\ToolBarTest.plg
...........\...........\ToolBarTest.rc
...........\...........\res\ToolBarTest.rc2
...........\060228.jpg
...........\ToolBarTest\res\060228.jpg
...........\...........\Debug
...........\...........\res
...........\ToolBarTest
toolbartest
...........\...........\使用说明.txt
...........\...........\MainFrm.h
...........\...........\Resource.h
...........\...........\StdAfx.h
...........\...........\ToolBarEx.h
...........\...........\ToolBarTest.h
...........\...........\ToolBarTestDoc.h
...........\...........\ToolBarTestView.h
...........\...........\MainFrm.cpp
...........\...........\StdAfx.cpp
...........\...........\ToolBarEx.cpp
...........\...........\ToolBarTest.cpp
...........\...........\ToolBarTestDoc.cpp
...........\...........\ToolBarTestView.cpp
...........\...........\Debug\ToolBarTest.exe
...........\...........\res\bkimage.bmp
...........\...........\...\Toolbar.bmp
...........\...........\ToolBarTest.aps
...........\...........\ToolBarTest.dsp
...........\...........\ToolBarTest.dsw
...........\...........\res\ToolBarTest.ico
...........\...........\...\ToolBarTestDoc.ico
...........\...........\ToolBarTest.ncb
...........\...........\ToolBarTest.opt
...........\...........\ToolBarTest.plg
...........\...........\ToolBarTest.rc
...........\...........\res\ToolBarTest.rc2
...........\060228.jpg
...........\ToolBarTest\res\060228.jpg
...........\...........\Debug
...........\...........\res
...........\ToolBarTest
toolbartest