IDvdControl2::ActivateAtPosition

 
Microsoft DirectShow 9.0

IDvdControl2::ActivateAtPosition

The ActivateAtPosition method activates the menu button under the mouse pointer position.

Syntax

  HRESULT ActivateAtPosition(
  POINT point
);

Parameters

point

[in] Point on the client window area, in screen pixel coordinates.

Return Values

Returns one of the following values.

Return code Description
S_OK The click occurred in the highlighted button rectangle, and the button was successfully activated.
E_INVALIDARG The point lies outside the valid video region.
E_UNEXPECTED The button is present but is not working.
VFW_E_DVD_INVALIDDOMAIN The DVD Navigator is not in a menu domain.
VFW_E_DVD_NO_BUTTON There is no menu button under the mouse pointer position.
VFW_E_DVD_OPERATION_INHIBITED The operation is inhibited by user operation (UOP) control.

Remarks

The mouse pointer coordinates are relative to the upper left of the client area, which isn't necessarily the video display area if the video is in letterbox format.

Use this method when the user is navigating through a menu by moving the mouse pointer directly over the menu buttons. If the user is using the relative buttons to navigate the menu, use ActivateButton rather than ActivateAtPosition.

The following table shows the Annex J command name to which this method name corresponds, and the domains in which this method is valid.

Annex J Command Name Valid Domains
None DVD_DOMAIN_VideoManagerMenu
DVD_DOMAIN_VideoTitleSetMenu

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also