handle: the handle of a module menu entry, or -1 to create one.
label: the label of the module entry. If handle is -1, then a path can be specified, in order to build sub-menus, e.g. "Menu\nSubmenu1\nSubmenu2\nLabel". Can be nullptr if handle is not -1.
state: Bit-coded: if bit0 is set (1), the item is enabled. If bit1 is set (2), the item is checked. If bit2 is set (4), the item is checkable.
Is ignored if set to -1. -2 will destroy an existing item.
|