Compartilhar via


IShellView::CreateViewWindow (Windows CE 5.0)

Send Feedback

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 Values

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

OS Versions: Windows CE 5.0 and later.
Header: Shobjidl.h, Shobjidl.idl.
Link Library: Implementation dependent.

See Also

IShellView | Standard Shell Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.