EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

button property

Sets or retrieves the mouse button pressed by the user.

This property is not supported for Windows Store apps using JavaScript. For the standards based property that can be used with Windows Store apps using JavaScript , see IDOMMouseEvent::button.

Syntax

HRESULT value = object.put_button( v);HRESULT value = object.get_button(* p);

Property values

Type: long

0

Default. No button is pressed.

1

Left button is pressed.

2

Right button is pressed.

3

Left and right buttons are both pressed.

4

Middle button is pressed.

5

Left and middle buttons both are pressed.

6

Right and middle buttons are both pressed.

7

All three buttons are pressed.

Remarks

This property is used with the HTMLFrameSiteEvents::onmousedown, HTMLFrameSiteEvents::onmouseup, and HTMLFrameSiteEvents::onmousemove events. For other events, it defaults to 0 regardless of the state of the mouse buttons.

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft