|
|
|
|
|
|
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| shlobj.h
| Unicode
| No
| Platform Notes
| None
|
|
|
IShellBrowser::GetViewStateStream
[Now Supported on Windows NT]
The browser provides an IStream interface as the storage for view-specific state information.
HRESULT GetViewStateStream(
DWORD grfMode,
| // Specifies the mode
| LPSTREAM *ppStrm
| // Points to the LPSTREAM variable
| );
|
|
Parameters
grfMode
Specifiies the read-write access. This may be set to STGM_READ, STGM_WRITE, or
STGM_READWRITE. For more information about these values see the STGM enumeration.
ppStrm
Pointer to the address of the LPSTREAM variable to be filled.
Return Values
Returns NOERROR if successful or an OLE-defined error value otherwise.
Remarks
Used to save and restore the persistent state for a view. For example, the
icon positions the column widths, and the current scroll position.
Notes to Callers:
Use GetViewStateStream when the view is being created to read in the saved view state and when the
view is being closed to save any changes to the view state. Typically, the view
calls this member with STGM_READ when creating a view window and with
STGM_WRITE when the SaveViewState method of its IShellView interface is called.
Notes to Implementors:
Each shell view should have its own view stream. The Explorer implements an
MRU (most recently used) list of view streams that are stored on a per-user basis
in the registry.
See Also
IShellBrowser
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
|