GetMenuItem Function

Retrieves information about a menu item.

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

Parameters

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.

Return Value

True on success, false if position is invalid.

Errors

Invalid Handle.