WinXNewToolbarUsingIls


hToolbar = WinXNewToolbarUsingIls (hilMain, hilGray, hilHot, toolTips, customisable)

Makes a new toolbar using the pre built image lists.

Parameter Description
hilMain The image list containing the main button images
hilGray The image list containing the images to use when the buttons are disabled
hilHot The image list containing the images to use when the mouse is moved over the buttons.
toolTips $$TRUE to use tooltips, $$FALSE to disable them
customisable NOT IMPLEMENTED YET, USE $$FALSE

Returns

The handle to the toolbar or 0 on fail

Remarks

This function is called internally by WinXNewToolbar after it has generated the image lists. The image lists must all contain the same number of images, and the image in each image list must correspond to the same image in a different state in the other image lists.

This function is provided in case you need to construct your own image lists, for example, if you are using icons for your images instead of bitmaps.

Examples

'assume the programmer has already generated the image lists
WinXNewToolbarUsingIls (hilMain, hilGray, hilHot, $$TRUE, $$FALSE)

Related Links

WinXNewToolbar
WinXSetWindowToolbar
WinXToolbar_AddButton