IUIRibbon::LoadSettingsFromStream method
Reads ribbon settings from a binary stream.
Syntax
HRESULT LoadSettingsFromStream(
[in] IStream *pStream
);
Parameters
Return value
Type: HRESULT
Returns S_OK if successful, or E_FAIL if the format or content of the serialized stream is empty or cannot be verified by the Ribbon framework.
Remarks
The stream is supplied by the host application. If the Windows Ribbon framework is unable to load a valid stream, the default ribbon layout is rendered instead.
The LoadSettingsFromStream 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 |
|
|
IDL |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/14/2012