다음을 통해 공유


IDvdInfo2::GetButtonAtPosition

 
Microsoft DirectShow 9.0

IDvdInfo2::GetButtonAtPosition

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

Syntax

  HRESULT GetButtonAtPosition(
  POINT point,
  ULONG *puButtonIndex
);

Parameters

point

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

puButtonIndex

[out] Pointer to a variable of type ULONG that receives the index (from 1 through 36) of the button at the current mouse pointer position.

Return Values

Returns one of the following HRESULT values.

Return code Description
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

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

Library: Use Strmiids.lib.

See Also