Index   Commented   Search   About

Quick Info

Windows NT
Yes
Win95
Yes
Win32s
No
Import Library
-
Header File
shlobj.h
Unicode
No
Platform Notes
None

IShellView::CreateViewWindow

[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 FOLDERSETTINGS structure. The view should use this when creating its view.

psb

Pointer to the current instance of IShellBrowser. The view should AddRef 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

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun