IShellView::CreateViewWindow  5PQTZGJ

[Now Supported on Windows NT]

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

RESULT CreateViewWindow(

    ISHELLLINK *lpPrevView,

// Points to previous view

    LPFOLDERSETTINGS lpfs,

// Points to FOLDERSETTINGS

    IShellBrowser *psb,

// Points to shell browser

    RECT *prcView,

// Points to the rect the defines the view size

    HWND *phWnd

// Points to the returned window handle

   );

 

 

Parameters

lpPrevView

Pointer to the view window being exited. Views can use it to talk to a previous view of the same implementation. This can be used to optimize browsing between like views. This pointer may be NULL.

lpfs

Pointer to a FOLDERSETTINGS3GGS068 structure. The view should use this when creating its view.

psb

Pointer to the current instance of IShellBrowserPGETM9. The view should AddRef1SHW0SS this pointer and keep it to allow communication with the Explorer window.

prcView

Specifies the dimensions in client coordinates in which the view should create itself.

phWnd

Pointer to the handle of the window being created.

 

Return Values

Returns NOERROR if successful or an OLE-defined error value otherwise.

Remarks

This is the call that creates the view.

Notes to Callers

Call this method when the view needs to be created.

Notes to Implementors

Create your view window and restore any persistent state by calling IShellBrowser::GetViewStateStream.

See Also

IShellView, IShellBrowser::GetViewStateStream