Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Create a Convenient Toolbar Assistant Using WTL

0.00/5 (No votes)
11 Mar 2008 1  
A more easy to generate toolbar images.
TA-0311-001.png

ToolBar.png

Introduction

In the many development processes, to create the toolbar image of the application is a very headache thing. After the use of many tools in this area, still have not found a more suitable. So I began to develop my own tool - "ToolBar Assistant".

I use the latest version of WTL 8.0. Integrated development environment is Microsoft Visual Studio. NET 2003. I just had a simple test in Windows XP with SP2.

The following features are available in current version:
· Support all formates that supported in CXimage (bmp, jpeg, ico, gif, png, targa, tga, tif, etc.).
· Adjust the order of images.
· Unified image file size, color depth, format, etc..
· A number of effects can be used (color adjustment, brightness adjustment, gray, color inversion, horizontal mirror, vertical mirror, rotate, etc.).
· Support unlimited Undo and Redo.
· Support for multi-frame images.
· Support convert images to a specified format.
· convert color-model (1bit ... 256 colors ... 16 bit ... 24 bit ... 32 bit).
· Automatically named output images files by Command ID specified.
· Merge and Generate toolbar image as a specified format.
· Support transparent and background color.
· Support a wide range of interpolation functions to resample.
· Support theme in Windows XP or Vista.

New Feature at Ver1.01
1. Save workspace as a .taw file with undo and redo buffers.
2. Import from an entire toolbar bitmap with transparent background.
3. Extract images from a toolbar bitmap.
4. ShiftRGB and Colorlize Effect with more easy UI.
5. Suport mass images.
6. Improved drawing-speed.

How it works

Just three steps to create a toolbar image.
Step 1: Add images used for buttons

Step 2: Do some order and appearance adjustment

appearance adjustment
Step 3: Save

Output

Latest news

New version will come soon.More easy, more enjoy!
1. Drag/drop from explorer.

2. Generate source code for the creation of the toolbar in C++ automatically to the clipboard or file.

3. Import toolbar images generated by Visual C++ or another applications, transparent background also supported.

Credits

I wish to thank:
· Davide Pizzolato for CxImage.
· Microsoft for the great WTL.
· And all the authors of the controls used in this project.

History

1.0 - (2008/02/26).
First public release.

1.01 - (2008/03/10)
[+] Save workspace as a .taw file with undo and redo buffers.
[+] Import from an entire toolbar bitmap with transparent background.
[+] Extract images from a toolbar bitmap.
[+] ShiftRGB and Colorlize Effect with more easy UI.
[-] Fix bugs reported in mails.
[F] Re-Construct the architecture.
[F] Optimize the speed of PNG export.
[+] Remember last effect's configuration.

About my friends and me

Since 1998, I have been engulfed by software. I chance in the growing maturity of software development:) More than thirty projects completed successfully by my comrade and me.

Now I am engaged in network technology. Let no distance between people in the world is my dream. We have been continuous efforts, because we believe that the world can be vivid.

Our information can be found at:
http://www.soft234.com
http://www.toroya.com
http://news.csdn.net/n/20070809/107221.html
http://bbs.prj.csdn.net/ShowPost.aspx?PostID=5689

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 here