Compartilhar via


IXRFrameworkElement::GetCursor (Compact 2013)

3/28/2014

This method retrieves the cursor that is displayed while the mouse pointer is over this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetCursor(
    __out XRCursor* pCursor
) = 0;

Parameters

  • pCursor
    [out] Pointer to an XRCursor enumerated type that indicates the cursor that is displayed, such as XRCursor_Arrow or XRCursor_IBeam.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The cursor value can change based on the composition or implementation of specific controls. For example, any control that contains an IXRTextBox, or IXRTextBox itself, can affect the cursor displayed.

.NET Framework Equivalent

System.Windows.FrameworkElement.Cursor

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement