IUIFramework2::SetUICommandMarkup method
Specifies the Ribbon markup for a dynamic control declaration and binds the control to a predefined command.
HRESULT SetUICommandMarkup(
[in] UINT32 commandId,
[in] LPCWSTR markup
);
commandId [in]
The ID for the Command, which is specified in the markup resource file.markup [in]
The Ribbon markup for the control.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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 |