In IEventReceiver under the EGUI_EVENT_TYPE definition it says:
Code: Select all
//! An element would like to close.
/** Windows and context menus use this event when they would like to close, this can be cancelled by absorbing the event. */
EGET_ELEMENT_CLOSED,
but when an IGUIContextMenu is closed, the EGET_ELEMENT_CLOSED event is never fired. In fact there is no way to detect the closing of an IGUIContextMenu (unless a specific element with its own messaging is chosen from the menu but this isn't always the case, especially since the menu closes if you just click off it).
IGUIContextMenu should fire the EGET_ELEMENT_CLOSED message when it closes.