Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.ShowCursor

Displays or hides the cursor.

object.ShowCursor( _ 
    bShow As Long) As Long

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
bShow
If bShow is a nonzero value, the cursor is shown. If bShow is zero, the cursor is hidden.

Return Values

Value indicating whether the cursor was previously visible. This value is nonzero if the cursor was previously visible, or zero if the cursor was not previously visible.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

This method is independent of the Microsoft® Win32® API ShowCursor and SetCursor functions. Applications should either use the Win32 cursor or the Microsoft Direct3D® cursor, not both.

See Also

Direct3DDevice8.SetCursorPosition, Direct3DDevice8.SetCursorProperties