|
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
| //OLEMENUGROUPWIDTHS array
| );
|
|
Parameters
hmenuShared
[in] Specifies a handle to an empty menu.
lpMenuWidths
[in, out] Points to an OLEMENUGROUPWIDTHS array of six LONG values. The container fills in elements 0, 2, and 4 to
reflect the number of menu elements it provided in the File, View, and Window menu
groups.
Return Values
S_OK
The menu groups were inserted successfully.
E_INVALIDARG
One or more arguments are invalid.
E_UNEXPECTED
An unexpected error occurred.
Comments
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 array pointed to by lpMenuWidths. The object application then adds its own menus and counts. Objects can call IOleInPlaceFrame::InsertMenus as many times as necessary to build up the composite menus. The container
should use the initial menu handle associated with the composite menu for all menu
items in the drop-down menus.
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|