Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IDvdControl2::ActivateAtPosition method

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

Syntax


HRESULT ActivateAtPosition(
  [in] POINT point
);

Parameters

point [in]

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

Return value

Returns one of the following values.

Return codeDescription
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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
Error and Success Codes
IDvdControl2 Interface
Working With DVD Menus

 

 

Community Additions

ADD
Show:
© 2015 Microsoft