Menu.GetItem Method

Retrieves information about a menu item.

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

Parameters

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.