Export (0) Print
Expand All

IUICommandHandler interface

The IUICommandHandler interface is implemented by the application and defines the methods for gathering Command information and handling Command events from the Windows Ribbon framework.

Members

The IUICommandHandler interface inherits from the IUnknown interface. IUICommandHandler also has these types of members:

Methods

The IUICommandHandler interface has these methods.

MethodDescription
Execute

Responds to execute events on Commands bound to the Command handler.

UpdateProperty

Responds to property update requests from the Ribbon framework.

 

Remarks

For each Command in a View, the Ribbon framework requires a corresponding Command handler in the host application. A new handler or an existing handler must be bound to the Command through the IUIApplication::OnCreateUICommand notification method.

Any number of Commands can be bound to a Command handler.

The Command handler serves two purposes: respond to property update requests and respond to execute events on any Command to which it is bound.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]

Header

Uiribbon.h

IDL

Uiribbon.idl

DLL

Uiribbon.dll

See also

Windows Ribbon Framework Samples

 

 

Community Additions

ADD
Show:
© 2014 Microsoft