Contents Index Topic Contents | ||
Previous Topic: IHTMLEventObj::get_keyCode Next Topic: IHTMLEventObj::get_type |
IHTMLEventObj::get_button
HRESULT get_button( long *p );Retrieves which mouse button, if any, is pressed.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a long integer variable that receives one of these values:
0 No button. 1 Left button is pressed. 2 Right button is pressed. 4 Middle button is pressed. This property is intended to be used with the onmousedown, onmouseup, and onmousemove events. For other events, it typically is 0 regardless of the state of the mouse buttons.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.