IShellBrowser 

The IShellBrowser interface provides services for namespace extensions and is the companion to the IShellView2239_BF interface implemented by namespace extensions.. It is similar to the  site  interfaces that are often found in OLE hosting scenarios, such as IOleControl2GKTZ0K and IOleControlSite03HR23. This allows the extension to communicate with the host of the namespace, providing UI elements like menus, status text, and tool bars. This interface also provides the extension with a way to access storage to save its persistent view state.

IShellBrowser derives from IOleWindow13880GC and it represents the container s top-level window, allowing the contained views to insert their menus into the composite menu, install the composite menu into the appropriate window frame and remove the container s menu elements from the composite menu. It sets and displays status text relevant to the in-place object. It also enables or disables the frame s modeless dialog boxes, and translates accelerator keystrokes intended for the container s frame.

When to Implement

You do not implement this interface directly. IShellBrowser is implemented by the Windows Explorer and by the Windows File Open Dialog.

When to Use

When implementing a namespace extension, notably IShellView, you will use the IShellBrowser implementation that is passed to use IShellBrowser::CreateViewWindow to communicate with the  Explorer.

Methods in Vtable Order

IUnknown Methods

Description

QueryInterface2Y54585

Returns pointers to supported interfaces.

AddRef1SHW0SS

Increments reference count.

ReleaseDUW01A

Decrements reference count.

 

IOleWindow Methods

Description

GetWindow2MLJP1W

Returns a handle to one of the windows participating in in-place activation.

ContextSensitiveHelp2Q6WFYP

Determines whether context-sensitive help mode should be entered during an in-place activation session.

 

IShellBrowser Methods

Description

InsertMenusSBKOL_OE

Inserts the Explorer s menu items to an empty menu created by the view.

SetMenuSB4U2QX_

Installs the composite menu in the Explorer.

RemoveMenusSBZ9SJC_

Gives the container a chance to remove its items from a composite menu. It  perform tasks that are the opposite of InsertMenuSB.

SetStatusTextSB1JCI0WI

Sets and displays status text in the Explorer window.

EnableModelessSB9AE62V

Enables or disables modeless windows of the Explorer, such as a floating toolbar.

TranslateAcceleratorSB1K9Y7SY

Reserved for future use.

BrowseObject1151T4X

Tells the Explorer to browse in another folder.

GetViewStateStream1282EWF

Returns a view-specific stream that can be used to read and write the persistent data for a view.

GetControlWindowKBHVTA

Gets the window handle of an Explorer control.

SendControlMsg1.76RQP

Sends messages to Explorer controls.

QueryActiveShellView38DT_HV

Returns the currently activated (displayed) shellview object.

OnViewWindowActiveHUDP3G

Informs the Explorer that the view was activated.

SetToolbarItems15ENRV9

Adds toolbar items to the Explorer s toolbar.