AddMenuItem Function

Appends a new item to the end of a menu.

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

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

True on success, false on failure.

Errors

Invalid Handle or item limit reached.