IUIFramework::SetModes method (uiribbon.h)
Specifies the application modes to enable.
HRESULT SetModes( INT32 iModes );
A bit mask that identifies the modes.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
A mode indicates the functionality required and, therefore, which elements should be displayed (or hidden) at run time, depending on the state or context of an application. For example, network connectivity may directly impact the functionality of an application and require a "Network" mode of network-related commands whenever a connection is detected.
Modes are specified for elements in the Ribbon markup and bound to individual controls at run time.
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|