ItEv_SetMenu 

Use

Sets the menu entry to be sent by directly specifying the menu handle of the appropriate IT_MENU structure.

Also sets the MES_MENU bit of eventtype.

Syntax

DWORD DLEX ItEv_SetMenu(PIT_EVENT pEvt, HANDLE menuhandle);

Parameters

pEvt

Pointer to the IT_EVENT structure

menuhandle

Menu handle from the hMenu field in the IT_MENU structure

Return Value

Returns TRUE on success.

Comments

ItEv_SetMenuID, which selects the menu item by index number, internally calls ItEv_SetMenu to set the menu entry.

See Also

ItEv_SetMenuID.