TBSTYLE_FLAT,但它显示出来的颜色全是彩色的。如果要实现与IE完全相同的效果,要自己实现。可参考CJLIB6.9。
网址:http://www.codejoke.com
网址:http://www.codejoke.com
解决方案 »
- Creating browse info file 这个步骤如何去掉?
- 孙鑫教程连接错误的问题?
- cell的字体问题
- 如何在TreeView中让不同的节点用不同的颜色显示??
- VC到底该怎么学
- 怎样把一个对话框显示在试图的下面、状态栏的上面?
- 好像这个问题还没有人问过,ACCESS不支持存储过程,但是简单的可以用ACCESS自己的查询代替吧,那么VC中DAO如何调用ACCESS的查询呢?
- 请问,最近各位是否能访问sourceforge.net?我这里不能连接到sourceforge,会不会又被封了?(无内容)
- 数据库问题,如何把竖向的内容根据记录值横向显示,用一条select实现
- 如何使用assert()?
- 在vc6.0如何改变edit控件的底色
- 关于创建位图的几个函数-----VC图像高手请进!
在VC6项目向导中(SDI或MDI),指定为IE风格看看。
CToolBar并没有直接提供方法,需要借助CToolBar的GetToolbarCtrl()来取得控件,然后使用CToolCtrl类的Setimagelist,sethotimagelist,setdisabledimagelist,就能够实现你的目的,有些细节,自己看一下书就知道了。
CImageList imageList;
CBitmap bitmap; // Create and set the normal toolbar image list.
bitmap.LoadBitmap(IDB_TOOLBAR_COLD);
imageList.Create(21, 20, ILC_COLORDDB and ILC_MASK, 13, 1);
imageList.Add(&bitmap, RGB(255,0,255));
m_hotToolBar.SendMessage(TB_SETIMAGELIST, 0, (LPARAM)imageList.m_hImageList);
imageList.Detach();
bitmap.Detach(); // Create and set the hot toolbar image list.
bitmap.LoadBitmap(IDB_TOOLBAR_HOT);
imageList.Create(21, 20, ILC_COLORDDB and ILC_MASK, 13, 1);
imageList.Add(&bitmap, RGB(255,0,255));
m_hotToolBar.SendMessage(TB_SETHOTIMAGELIST, 0, (LPARAM)imageList.m_hImageList);
imageList.Detach();
bitmap.Detach();