Share via


HTMLWindowEvents4::onmouseup Event

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Fires when the user releases a mouse button while the mouse is over the object.

Syntax

void onmouseup(
    IHTMLEventObj *pEvtObj
);

Parameters

Return Value

No return value.

Event DISPID

DISPID_HTMLWINDOWEVENTS4_ONMOUSEUP

The DISPID for this event is defined in mshtmdid.h. Use this value to identify the event handler when implementing IDispatch::Invoke.

Event Information

Bubbles Yes
Cancels Yes
To invoke Press and release a mouse button.
Default action Initiates any action associated with this event.

Event Object Properties

The IHTMLEventObj interface contains additional information about the current event. When the onmouseup event is fired, you can use the IHTMLWindow2::event property to retrieve an IHTMLEventObj interface. To obtain an alternate interface pointer such as IHTMLEventObj2 or IHTMLEventObj3, call QueryInterface on the object.

Available Properties

IHTMLEventObj::button Gets the mouse button pressed by the user.
IHTMLEventObj2::button Gets or sets the mouse button pressed by the user.
IDOMMouseEvent::button New for Internet Explorer 9  Gets the mouse button that caused an event.
IHTMLEventObj::clientX Gets the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
IHTMLEventObj2::clientX Gets or sets the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
IDOMMouseEvent::clientX New for Internet Explorer 9  Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the browser's client area).
IHTMLEventObj::clientY Gets the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
IHTMLEventObj2::clientY Gets or sets the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
IDOMMouseEvent::clientY New for Internet Explorer 9  Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the browser's client area).
IHTMLEventObj::ctrlKey Gets the state of the CTRL key.
IHTMLEventObj2::ctrlKey Gets or sets the state of the CTRL key.
IDOMMouseEvent::ctrlKey New for Internet Explorer 9  Gets a value that indicates whether the Ctrl key is pressed.
IHTMLEventObj::offsetX Gets the x-coordinate of the mouse pointer's position relative to the object firing the event.
IHTMLEventObj2::offsetX Gets or sets the x-coordinate of the mouse pointer's position relative to the object firing the event.
IDOMMouseEvent::offsetX New for Internet Explorer 9  Gets the y-coordinate of the mouse pointer, relative to the target node.
IHTMLEventObj::offsetY Gets the y-coordinate of the mouse pointer's position relative to the object firing the event.
IHTMLEventObj2::offsetY Gets or sets the y-coordinate of the mouse pointer's position relative to the object firing the event.
IDOMMouseEvent::offsetY New for Internet Explorer 9  Gets the y-coordinate of the mouse pointer, relative to the target node.
IHTMLEventObj::screenX Gets the x-coordinate of the mouse pointer's position relative to the user's screen.
IHTMLEventObj2::screenX Gets or sets the x-coordinate of the mouse pointer's position relative to the user's screen.
IDOMMouseEvent::screenX New for Internet Explorer 9  Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the screen.
IHTMLEventObj::screenY Gets the y-coordinate of the mouse pointer's position relative to the user's screen.
IHTMLEventObj2::screenY Gets or sets the y-coordinate of the mouse pointer's position relative to the user's screen.
IDOMMouseEvent::screenY New for Internet Explorer 9  Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the screen.
IHTMLEventObj::shiftKey Gets the state of the SHIFT key.
IHTMLEventObj2::shiftKey Gets the state of the SHIFT key.
IDOMMouseEvent::shiftKey New for Internet Explorer 9  Gets a value that indicates whether the Shift key is pressed.
IHTMLEventObj::srcElement Gets the object that fired the event.
IHTMLEventObj2::srcElement Gets or sets the object that fired the event.
IHTMLEventObj::x Gets the x-coordinate (in pixels) of the mouse pointer's offset from the closest relatively positioned parent element of the element that fired the event.
IHTMLEventObj2::x Gets or sets the x-coordinate (in pixels) of the mouse pointer's offset from the closest relatively positioned parent element of the element that fired the event.
IDOMMouseEvent::x New for Internet Explorer 9  Gets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.
IHTMLEventObj::y Gets the y-coordinate (in pixels) of the mouse pointer's offset from the closest relatively positioned parent element of the element that fired the event.
IHTMLEventObj2::y Gets or sets the y-coordinate (in pixels) of the mouse pointer's offset from the closest relatively positioned parent element of the element that fired the event.
IDOMMouseEvent::y New for Internet Explorer 9  Gets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element.

Refer to the specific event object for additional event properties.

Remarks

Use the button property to determine which mouse button is pressed.

See Also

HTMLWindowEvents4::onmousewheel, HTMLWindowEvents4::onclick, HTMLWindowEvents4::onmousedown, HTMLWindowEvents4::onmousemove, HTMLWindowEvents4::onmouseout, HTMLWindowEvents4::onmouseover