WinXToolbar_AddControl


WinXToolbar_AddControl (hToolbar, hControl, w)

Adds a control to a toolbar control

Parameter Description
hToolbar The toolbar to add the control to
hControl The handle of the control to add to the toolbar
w The number of pixels the control will use in the toolbar

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The toolbar displays buttons in the order they are added.

Do not add the control to the auto sizer before or after adding it to a toolbar. The control will automatically be resized to the height of the toolbar and the width specified.

Examples

'create a button and add it to a toolbar
hButton = WinXAddButton (#hMain, "A button", 0, $$ID_BUTTON)
WinXToolbar_AddControl (hToolbar, hButton, 80)

Related Links

WinXNewToolbar
WinXNewToolbarUsingIls
WinXToolbar_AddButton
WinXToolbar_AddToggleButton
WinXToolbar_AddSeperator