|
项目描述: |
If you wanted to add hot toolbar buttons like the ones seen in internet explorer, it is pretty straight forward. This approach for will work for both Visual C++ 5 and 6, however you may want to read up on the enhancements to the toolbar class for VC 6.0.
After your toolbar has been created in CMainFrame::OnCreate(), you will need to add the following code, this is assuming that you have two bitmap resources already created IDB_TOOLBAR_COLD for normal, and IDB_TOOLBAR_HOT for hot buttons:
使用Hot Toolbar Buttons
如果你想增加一个像Internet Explorer中的那样的Hot Toolbar的话,那你最好是一直坚持下去。通过Visual C++5或6都可以做到,然而因为VC6.0中工具栏的增强,你可能想继续下去。
你在CMainFrame::OnCreate()中创建你的工具栏后,你需要添加下面的代码,这里假定你已经创建了两个位图资源,为不同按钮创建的IDB_TOOLBAR_COLD和为hot buttons创建的IDB_TOOLBAR_HOT。
来源: http://www.codeguru.com/toolbar/demo_toolbar_e.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
demo_toolbar |
 1.0  |
2004-04-19 |
下载 |
|
|