InsertMenuItem Function

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.

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


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

True on success, false on failure.


Invalid Handle or menu position.