IUIFramework::GetUICommandProperty method (uiribbon.h)

Retrieves a command property, value, or state.

Syntax

HRESULT GetUICommandProperty(
  UINT32         commandId,
  REFPROPERTYKEY key,
  PROPVARIANT    *value
);

Parameters

commandId

Type: UINT32

The ID for the Command, which is specified in the Markup resource file.

key

Type: REFPROPERTYKEY

The property key of the command property, value, or state.

value

Type: PROPVARIANT*

When this method returns, contains the property, value, or state.

Return value

Type: HRESULT

Returns S_OK if successful; otherwise, an error value from the following list.

Value Description
HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED) The property, value, or state does not support IUIFramework::GetUICommandProperty.
E_FAIL The operation failed.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header uiribbon.h
DLL Mshtml.dll

See also

IUIFramework

Windows Ribbon Framework Samples