XLL+ Class Library (7.0)

CXllApp::BeforeRightClickEvent

Gets a reference to the BeforeRightClick event

CXlBeforeRightClickEvent& BeforeRightClickEvent( );

Return Value

The function returns a reference to the application's BeforeRightClick event, which is of type CXlBeforeRightClickEvent.

Remarks

The BeforeRightClick event is raised when the user right-clicks in a worksheet. All registered observers receive the event via the CXlEventObserver::Update method.

When observers are notified, an argument of type CXlCancellableRangeEventArgs is passed. Observers can cancel normal processing of the right-click by cancelling the event using CXlCancellableRangeEventArgs::SetCancel(false).

Registration

Observers can register for this event at any point in the life of the XLL. Registration can be done explicitly using Register, or automatically by creating an instance of CXlBeforeRightClickEventStaticObserver.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | Events