IOleInPlaceFrame::InsertMenus
Allows the
container to insert its menu groups into the composite menu to be used during
the in-place session.
HRESULT InsertMenus(
HMENU hmenuShared, |
//Handle to empty menu |
LPOLEMENUGROUPWIDTHS lpMenuWidths |
//Pointer to array |
); |
|
Parameters
hmenuShared
[in] Handle
to an empty menu.
lpMenuWidths
[in, out]
Pointer to an OLEMENUGROUPWIDTHS
Return Values
S_OK
This method
supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as
the following:
S_OK
The menu
groups were inserted successfully.
Remarks
Notes to Callers
This method
is called by object applications when they are first being activated. They call
it in order to insert their menus into the frame-level user interface.
The object
application asks the container to add its menus to the menu specified in hmenuShared
and to set the group counts in the OLEMENUGROUPWIDTHS