OnPopupInit - cCJMDIWindowsMenuItem
Augmented to add a list of MDI views to the end of the static menu items
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| vCommandBarControl | Variant | Pointer to the COM control that was executed. If used this must be bound to a DataFlex proxy object, which should be based cCJCommandBarControl or one if its sub-classes. This is rarely needed. |
| hoCommandBarControls | Handle | Handle of a DataFlex cCJCommandBarControls object that is bound to the COM object. |
Syntax
Procedure OnPopupInit Variant vCommandBarControl Handle hoCommandBarControls
Description
OnPopupInit is augmented to add a list of MDI views to the end of the static menu items. The method used to accomplish this shows how dynamic menus are created. You are encouraged to study the source code to see how this is done. The menu item's class OnPopupInit reference material (actually cCJAction) explains how dynamic menu items are added to a popup. This class and this method provides a real world example of how that is implemented.