次の方法で共有


IXRUIElement::ReleaseMouseCapture (Compact 2013)

3/28/2014

This method removes mouse capture from this UI element, which typically means that no UI element holds mouse capture.

Syntax

virtual HRESULT STDMETHODCALLTYPE ReleaseMouseCapture() = 0;

Parameters

None.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method releases mouse capture for an object that has captured the mouse by calling IXRUIElement::CaptureMouse. When an object has captured the mouse, it receives mouse input whether or not the pointer is within its bounds.

Calling ReleaseMouseCapture on an object that did not have mouse capture has no effect.

.NET Framework Equivalent

System.Windows.UIElement.ReleaseMouseCapture

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::CaptureMouse