IUIFramework2::SetUICommandMarkup method

Specifies the Ribbon markup for a dynamic control declaration and binds the control to a predefined command.

Syntax

HRESULT SetUICommandMarkup(
  [in] UINT32  commandId,
  [in] LPCWSTR markup
);

Parameters

  • commandId [in]
    The ID for the Command, which is specified in the markup resource file.

  • markup [in]
    The Ribbon markup for the control.

Return value

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

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Uiribbon.h

IDL

Uiribbon.idl

DLL

Uiribbon.dll

See also

IUIFramework2