GetMenuItem Function

Retrieves information about a menu item.

bool GetMenuItem(Handle menu, int position, char[] infoBuf, int infoBufLen, int& style, char[] dispBuf, int dispBufLen, int client)


Handle menu

Menu Handle.

int position

Position, starting from 0.

char[] infoBuf

Info buffer.

int infoBufLen

Maximum length of the info buffer.

int& style

By-reference variable to store drawing flags.

char[] dispBuf

Display buffer.

int dispBufLen

Maximum length of the display buffer.

int client

Client index. Must be specified if menu is per-client random shuffled, -1 to ignore.

Return Value

True on success, false if position is invalid.


Invalid Handle.