IDvdInfo2::GetButtonAtPosition method

The GetButtonAtPosition method retrieves the button located at the specified point within the display window.

Syntax


HRESULT GetButtonAtPosition(
  [in]  POINT point,
  [out] ULONG *puButtonIndex
);

Parameters

point [in]

Current mouse pointer position as retrieved through the Win32 WM_MOUSEMOVE message.

puButtonIndex [out]

Receives the index (from 1 through 36) of the button at the current mouse pointer position.

Return value

Returns one of the following HRESULT values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

Invalid argument.

E_POINTER

The puButtonIndex parameter is invalid.

VFW_E_DVD_NO_BUTTON

No button at point.

 

Remarks

This method is typically called in response to a mouse pointer move within a DVD menu display window. Be sure to check for success in the HRESULT before trying to retrieve the button number; this method only sets the value of puButtonIndex if a button is found at the specified point. DVD buttons do not necessarily have highlighted rectangles, button rectangles can overlap, and button rectangles do not always correspond to the visual representation of the buttons.

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
IDvdInfo2 Interface

 

 

Show: