Results 1 to 2 of 2

Thread: Animated cursor

  1. #1

    Thread Starter
    Member betto's Avatar
    Join Date
    Mar 2000
    Location
    Perú
    Posts
    38
    Hi again...
    i need some help with this: im using VB5 and i'd like to use an animated cursor with my aplication.. i tried with
    Screen.MouseIcon = LoadPicture( App.Path & \hourglas.ani")

    but i got "invalid picture"... How can i load an animated cursor???????... it's not a ".cur"...

    betto [email protected]


  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    You need to use the SetClassLong(with GCL_HCURSOR) and LoadCursorFromFile APIs

    load cursor from file returns a file to a cursor loaded from a filename and setclass long will swap the cursor with your new cursor handle (use the getdesktopwindow API for the hWnd) remember to store the return value of getclasslong and put it back before you end your app

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width