Contents Index Topic Contents | ||
Previous Topic: IShellBrowser::SendControlMsg Next Topic: IShellBrowser::SetStatusTextSB |
IShellBrowser::SetMenuSB
RESULT SetMenuSB( HMENU hmenuShared, HOLEMENU holemenuReserved );Installs the composite menu in the view window.
- Returns NOERROR if successful, or an OLE-defined error value otherwise.
- hmenuShared
- Handle to the composite menu constructed by calls to IShellBrowser::InsertMenusSB and the Win32 InsertMenu function.
- holemenuReserved
- Reserved for future use.
This method is similar to the IOleInPlaceFrame::SetMenu method. However, Windows Explorer performs menu dispatch based on the menu item identifier.
The availability of specific menu items depends on whether the view has the focus. Accordingly, it is necessary to call the IShellBrowser::OnViewWindowActive method whenever the view window (or one of its child windows) has the focus.
Notes to Callers
The object calls IShellBrowser_SetMenuSB to ask the container to install the composite menu structure set up by calls to IShellBrowser::InsertMenusSB.
Notes to Implementers
A container's implementation of this method should call the Windows SetMenu function.
See also IShellBrowser
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.