IoleinplaceFrame :: Insertmenus
Allow containers into its menu groups to the composite menu to be used during bit (in-place) session.
HRESULT INSERTMENUS (HMENU HMENUSHARED, / / Empty Fan Handle LPOLEMENUGROUGROUPWIDTHS LPMENUWIDTHS / / Pointing Array);
parameter
Hmenushared
An empty menu handle.
LpMenuwidths
Point six values
OLEMENUGROUPWIDTHS array. The window is filled in tags 0, 2, and 4 reflects the number of menu tags it provides in the file, view, and window menu groups.
return value
This method supports standard return value E_INVALIDARG and E_UNEXPECTED, also supports the following:
S_ok
The menu group has been inserted successfully.
Comment
Caller
This method is called by the object application when they are activated for the first time. They call it to insert it in the frame-level user interface.
The object application tells the container to add a menu to the menu specified by the HMenushared and set the number of groups to LPMENUWIDTHS in the OleMenuGroupWidths array. The object application then adds its own menu and number. Objects will call IOleinplaceFrame :: Insertmenus multiple times according to different requirements to build a composite menu. The window should use all menu items in the drop-down menu to use the original menu and the composite menu.
Quick information
Windows NT: 3.1 or higher. Windows: Windows 95 or higher. Windows CE: does not support. HEADER: Oleidl.h.