OnUnhandledInitCommandsPopup - cCJCommandBarSystem
Called when OnComInitCommandsPopup cannot find an item object to send the OnInitCommandsPopup event to
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| llCommandBar | Variant | Pointer to the COM cCJCommandBar object that was executed. |
Syntax
Procedure OnUnhandledInitCommandsPopup Variant llCommandBar
Description
The OnComInitCommandsPopup event is called when a popup menu or tool bar item is executed via a mouse click or keyboard enter action. The event is passed the COM dispatch pointer of the item's cCJCommandBar object. It uses this pointer to locate the selected popup item's action and sends the message OnPopupInit to the object that owns this action. If an object cannot be found that owns the selected action, this message, OnUnhandledInitCommandsPopup is sent.
OnUnhandledInitCommandsPopup should normally not get called. This can occur in special cases where dynamic menu items are created that have no cCJMenuItem object counterpart. This message is designed to handle this case. Note that this event being called might also point to a programming error.
The parameter passed is a pointer to the cCJCommandBar COM object. This object is a child of the COM object that was actually selected.
Note that the OnComInitCommandsPopup event is called when a popup menu item is selected. When a non popup menu item is selected, OnComExecute and possibly OnUnhandledExecute are called.