Share via


IShellView::CreateViewWindow

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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

Syntax

HRESULT CreateViewWindow(
  IShellView* psvPrevious,
  LPCFOLDERSETTINGS pfs,
  IShellBrowser* psb,
  RECT* prcView,
  HWND* phWnd
);

Parameters

  • psvPrevious
    [in] Address of the IShellView interface of the view window being exited. Views can use this parameter to communicate with a previous view of the same implementation. This interface can be used to optimize browsing between similar views. This pointer may be NULL.
  • pfs
    [in] Address of a FOLDERSETTINGS structure. The view should use this when creating a new view.
  • psb
    [in] Address of the current instance of the IShellBrowser interface. The view should call this interface's AddRef method and keep the interface pointer to allow communication with the Windows Explorer window.
  • prcView
    [out] Dimensions of the new view, in client coordinates.
  • phWnd
    [out] Address of the window handle being created.

Return Value

Returns an OLE success code if successful, or an OLE error code otherwise.

Remarks

This method must be called when the view needs to be created.

This method must be implemented when you want to create your view window and restore any persistent state by calling the IShellBrowser::GetViewStateStream method. Store the IShellBrowser pointer for later use.

Requirements

Header shobjidl.h, shobjidl.idl
Library Developer Implemented
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

IShellView
Standard Shell Interfaces