Win32 Programming Examples using Win32For

Toolbar Example

The toolbar example is taken from the Microsoft article Win32 Common Controls, Part 2: Status Bars and Toolbars.

This is the result of the translated Win32For toolbar code showing the appearance of an API generated/managed tooltip. You will also need the toolbar bitmap and the toolbar icon to run this demo.



Also note that the bitmap used to create the toolbar doesn't need to have the buttons drawn on it, the API takes care of that. This also eliminates the "picture-dissappearing-when-you-press-the-button" phenomenon of Win32For's toolbar.




User toolbar customization support

This is a view of the Customize Toolbar dialog box demonstrated in the example (double-click on toolbar). Note that this is a function of the API, I supply only minimal code to support the dialog. Also, by Shift-Left-Clicking on a toolbar button, you can drag it to a different position (or off the toolbar completely)!





Author: Jeff Kelm, (how to contact me)
URL: http://www.concentric.net/~jkelm/win32for/toolbar.htm
(Modified: 2005-01-07)