InsertMenuItem

Last Updated2007-07-19
Created At2007-05-14

Inserts an item into the menu before a certain position; the new item will be at the given position and all next items pushed forward.

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

Parameters

Handle menu
Menu Handle.
int position
Position, starting from 0.
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 menu position.