IUIRibbon::SaveSettingsToStream method

Writes ribbon settings to a binary stream.

Syntax


HRESULT SaveSettingsToStream(
  [in]  IStream *pStream
);

Parameters

pStream [in]

Type: IStream*

Pointer to an IStream object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The stream is handed off to the host application for storage as appropriate.

The SaveSettingsToStream method is useful for persisting ribbon state, such as Quick Access Toolbar (QAT) items, across application instances.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Product

Windows UI

Header

Uiribbon.h

IDL

Uiribbon.idl

DLL

Mshtml.dll

See also

IUIRibbon
Persisting Ribbon State
IUIRibbon::LoadSettingsFromStream
Windows Ribbon Framework Samples

 

 

Community Additions

ADD
Show:
© 2014 Microsoft