Microsoft DirectX 9.0 SDK Update (October 2004)

Device.ShowCursor Method

Language:

Note: This documentation is preliminary and is subject to change.

Displays or hides the cursor.

Definition

Visual Basic .NET Public Function ShowCursor( _
    ByVal canShow As Boolean _
) As Boolean
C# public bool ShowCursor(
    bool canShow
);
Managed C++ public: bool ShowCursor(
    bool canShow
);
JScript .NET public function ShowCursor(
    canShow : boolean
) : boolean;

Parameters

canShow System.Boolean. Set to true if the cursor is shown. Set to false if the cursor is hidden.

Return Value

System.Boolean . Value that indicates whether the cursor was previously visible. If set to true, the cursor was visible; if set to false, it was not.

Remarks

Microsoft® Direct3D® cursor functions use either the Microsoft Windows® Graphics Device Interface (GDI) cursor or software emulation, depending on the hardware.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center