AddMenuItem

Last Updated2014-12-13
Created At2007-05-14

Appends a new item to the end of a menu.

native bool AddMenuItem(Handle menu, const char[] info, const char[] display, int style = 0)

Parameters

Handle menu
Menu Handle.
const char[] info
Item information string.
const char[] display
Default item display string.
int style
Drawing style flags. Anything other than DEFAULT or DISABLED will be completely ignored when paginating.

Return Value

bool True on success, false on failure.

Error

Invalid Handle or item limit reached.