Share via


InputDesktopResourceCursor Class

Definition

Represents a visual pointer object that uses an application resource instead of a predefined system cursor.

public ref class InputDesktopResourceCursor sealed : InputCursor
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class InputDesktopResourceCursor final : InputCursor
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class InputDesktopResourceCursor : InputCursor
Public NotInheritable Class InputDesktopResourceCursor
Inherits InputCursor
Inheritance
Object Platform::Object IInspectable InputCursor InputDesktopResourceCursor
Attributes

Remarks

Derived from InputCursor.

Uses a resource ID. If you need to use a string resource name instead, see InputDesktopNamedResourceCursor (Visual Studio assigns a unique integer ID to new resources).

You can add a .res resource file that contains a custom cursor to your project and include it in your assembly with the /win32res compiler option. The Id is the Cursor Resource ID specified in the .res file.

Properties

ModuleName

Gets the name of the module that contains the cursor resource.

ResourceId

Gets the resource identifier of the cursor resource.

Methods

Close()

Closes the InputCursor and releases system resources.

(Inherited from InputCursor)
Create(UInt32)

Creates an InputDesktopResourceCursor instance using the specified resource ID.

CreateFromModule(String, UInt32)

Creates an InputDesktopResourceCursor instance using the specified resource ID and the module from which to load the resource.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from InputCursor)

Applies to

See also