次の方法で共有


IShellView::SaveViewState (Compact 2013)

3/28/2014

This method saves the shell's view settings so the current state can be restored during a subsequent browsing session.

Syntax

HRESULT SaveViewState(void);

Parameters

None.

Return Value

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

Remarks

The shell view obtains a view stream by calling the IShellBrowser::GetViewStateStream method and stores the current view state in that stream.

Windows Explorer calls this method to save the view state for a view.

When you implement this method, be sure to make the format of the data stored in the stream robust enough that different versions of the implementation can read it without error.

Requirements

Header

shobjidl.h,
shobjidl.idl

Library

Developer Implemented

See Also

Reference

IShellView
Shell Interfaces