OLE control menu styles

When the user double-clicks on an OLE control, the control’s user interface is displayed. This normally includes a menu, which replaces the container window’s own menu. Three style flags are available which can be assigned to menu items, and which can be used to merge up to three menu items from the container window menu into the menu of the active OLE control. Each flag may be assigned to a single menu item only.

The flags are:

WS_FILE_MENU

Merges the menu item into the OLE menu in the File menu position.

WS_VIEW_MENU

Merges the menu item into the OLE menu in the View menu position.

WS_WINDOW_MENU

Merges the menu item into the OLE menu in the Window menu position.

A further flag is available:

WS_VERB_MENU

Creates a menu sub-tree in the container window, containing the OLE verbs for all the OLE controls defined within that window. See the example program $SCULPTOR/demo/ole/olecont.f for an illustration.


RELATED TOPICS

OLE controls