Gets which mouse button is pressed.
HRESULT IDOMMouseEvent::get_which(USHORT *p);
- Pointer to a variable of type unsigned short that receives one of the values listed in Possible Values.
1 No button is pressed. 2 The left mouse button is pressed. 3 The right mouse button is pressed.
Returns S_OK if successful, or an error value otherwise.
The which property is provided for compatibility only. The IDOMMouseEvent::button property is preferred.Note The values that are returned by this property are the same as those returned by button plus one.