<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > ToolBar Control > ToolBar Control Commands > ToolBar_SetImageList |
Description
Attach an ImageList to a ToolBar.
Syntax
n = ToolBar_SetImageList(hWnd, ctrlID, hList, ListType)
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
hWnd |
Number |
No |
Handle of the dialog containing the control |
ctrlID |
Number |
No |
Control identifier assigned to the control during CONTROL ADD ... |
hList |
Number |
No |
Handle of an ImageList |
ListType |
Number |
No |
One of the following values: 0 Default images 1 Disabled images 2 Hot images |
Remarks
Up to three ImageList structures may be attached to each ToolBar control.
The image to be displayed is determined by the specification made in ToolBar_AddButton, and the current state of the button.
When the ToolBar control is destroyed, any attached ImageList is automatically destroyed.
Restrictions
See also
Examples