Track

Method of IMenuObject

Track menu object or from cursor or mouse position and returns selected handler

  • VARIANT_BOOL bFromMousePosition = VARIANT_FALSE (optional)

Return Value

JavaScript

var ppHandler = MenuObject.Track(bFromMousePosition);

Visual Basic Script

ppHandler = MenuObject.Track bFromMousePosition

C++

CComPtr<ICommandHandler> pHandler;
HRESULT hr = MenuObject.Track(bFromMousePosition, &pHandler);