Advertisement
Java_Volume1 Miscellaneous #92801

Invisible Mouse

Squeak be gone! Have you ever wondered how to hide the user's cursor (mouse pointer)? Well, this simple API call will do the trick! See what you can do with it, and please vote!

AI

Podsumowanie AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kod źródłowy
original-source
Option Explicit
'This is the API function that will hide the cursor
Public Declare Function ShowCursor Lib "user32" Alias "ShowCursor" (ByVal bShow As Long) As Long
Private Sub Form_Load()
  'Hide the cursor when the program starts
  ShowCursor 0
End Sub
Private Sub Form_Unload()
  'Show the cursor when it ends
  ShowCursor 1
End Sub
Oryginalne komentarze (3)
Odzyskane z Wayback Machine