BPCVid.MouseDown

[This is preliminary documentation and subject to change.]

The MouseDown event occurs when the user presses a mouse button while the Video control has focus.

Syntax

Private Sub object_MouseDown(button As Integer, shift As Integer, _
 x As OLE_XPOS_PIXELS, y As OLE_YPOS_PIXELS)
 

Parameters

object
Object expression that resolves to a BPCVid object.
button
Integer that on return identifies the button pressed to cause the event. The button parameter is a bit field with bits corresponding to the left button (bit 0), right button (bit 1), and middle button (bit 2). These bits correspond to the values 1, 2, and 4, respectively. Only one of the bits is set, indicating the button that caused the event.
shift
Integer that corresponds to the state of the shift, ctrl, and alt keys at the time of the event. The shift parameter is a bit field with the least-significant bits corresponding to the shift key (bit 0), the ctrl key (bit 1), and the alt key (bit 2). These bits correspond to the values 1, 2, and 4, respectively. Some, all, or none of the bits can be set, indicating that some, all, or none of the keys are pressed. For example, if both ctrl and alt are pressed, the value of shift is 6.
x
Number that on return specifies the x-coordinate of the current mouse pointer location.
y
Number that on return specifies the y-coordinate of the current mouse pointer location.

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in vidsvr.odl.
  Import Library: Included as a resource in vid.ocx.
  Unicode: Yes.

See Also

BPCVid.MouseMove, BPCVid.MouseUp