| MenuAddIcon | Function (ROM Call 0x42)

menus.h

HANDLE MenuAddIcon (HANDLE Handle, short ParentID, const void *Icon, short ID, short Flags);

Adds a new icon item in a toolbar menu.

MenuAddIcon is very similar to MenuAddText, except instead of a text, the added menu item will consist of an icon. The icon is a 16x16 bitmap structure given as a 16-word group of bits, and parameter Icon is the pointer to it. This pointer is usually of type pICON (pointer to the ICON structure). All other parameters are explained in the MenuAddText function.
Note: It seems that it is possible to add items with icons instead of text to popup menus, too (not only to toolbar menus).

Uses: DynMenuAdd
Used by: cmd_custom, cmd_toolbar

See also: MenuNew, MenuLoad, DynMenuAdd, DynMenuChange, MenuAddText