Contents Index Topic Contents | ||
Previous Topic: IShellView::AddPropertySheetPages Next Topic: IShellView::DestroyViewWindow |
IShellView::CreateViewWindow
RESULT CreateViewWindow( ISHELLLINK *lpPrevView, LPFOLDERSETTINGS lpfs, IShellBrowser *psb, RECT *prcView, HWND *phWnd );Creates a view window. This can be either the right pane of Windows Explorer or the client window of a folder window.
- Returns NOERROR if successful, or an OLE-defined error value otherwise.
- lpPrevView
- Address of the view window being exited. Views can use this parameter to communicate with a previous view of the same implementation. This can be used to optimize browsing between like views. This pointer may be NULL.
- lpfs
- Address of a FOLDERSETTINGS structure. The view should use this when creating its view.
- psb
- 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
- Dimensions of the new view, in client coordinates.
- phWnd
- Address of the window handle being created.
Notes to Callers
Call this method when the view needs to be created.
Notes to Implementers
Create your view window and restore any persistent state by calling the IShellBrowser::GetViewStateStream method.
See also IShellView
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.