Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5463742
  • 博文数量: 671
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 7310
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-14 09:56
文章分类

全部博文(671)

文章存档

2011年(1)

2010年(2)

2009年(24)

2008年(271)

2007年(319)

2006年(54)

我的朋友

分类: C/C++

2008-08-29 17:36:31

Sample Image - tbcust.jpg

Introduction

This is a little example of toolbar customization using drag and drop. Some of the code used here is from other authors (Paul di Lascia, Stan Levin etc.) but this is my contribution.

Some aspects of the code are not finished (such as saving and restoring the toolbar's state). I have tested the code on Windows 2000 so please let me know if you have problems on other platforms.

The important files are:-

tbbutton.h and tbbutton.cpp which include the implementation of the buttons (edit, combo, progress, dropdown menu etc). You can derive your own buttons from this basic implementation.

toolbar.h and toolbar.cpp which include the CToolBar code for customization and button management.

tbdlg.h and which include the dialog customization interface.

mainframe.cpp which enables or disables the customization and manages the toolbars.

tbcust.cpp enables automation (without OLE, drag and drop doesn't work !)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found

阅读(628) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~