IShellView interface (shobjidl_core.h)

Exposes methods that present a view in the Windows Explorer or folder windows.


The IShellView interface inherits from IOleWindow. IShellView also has these types of members:


The IShellView interface has these methods.


Allows the view to add pages to the Options property sheet from the View menu.

Creates a view window. This can be either the right pane of Windows Explorer or the client window of a folder window.

Destroys the view window.

Enables or disables modeless dialog boxes. This method is not currently implemented.

Gets the current folder settings.

Gets an interface that refers to data presented in the view.

Refreshes the view's contents in response to user input.

Saves the Shell's view settings so the current state can be restored during a subsequent browsing session.

Changes the selection state of one or more items within the Shell view window.

Translates keyboard shortcut (accelerator) key strokes when a namespace extension's view has the focus.

Called when the activation state of the view window is changed by an event that is not caused by the Shell view itself. For example, if the TAB key is pressed when the tree has the focus, the view should be given the focus.


The object that exposes IShellView is typically created by a call to the IShellFolder::CreateViewObject method. This provides the channel of communication between a view object and Windows Explorer's outermost frame window. The communication involves the translation of messages, the state of the frame window (activated or deactivated), the state of the document window (activated or deactivated), and the merging of menus and toolbar items.

This interface is implemented by namespace extensions that display themselves in Windows Explorer's namespace. This object is created by the IShellFolder object that hosts the view.

These methods are used by the Shell view's Windows Explorer window to manipulate objects while they are active.

IShellView is derived from IOleWindow. The listed methods are specific to IShellView.

A special instance of IShellView known as the default Shell folder view object can be created by calling SHCreateShellFolderView or SHCreateShellFolderViewEx. This instance can be differentiated from standard implementations by calling QueryInterface on an IShellView object using the IID_CDefView IID. This call succeeds only when made on the default Shell folder view object.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)