home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / tools / 1952 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.5 KB

  1. Path: sparky!uunet!olivea!pagesat!a2i!shakala!donh
  2. From: donh@shakala.com (Don Hackler)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: VB - custom cursors??
  5. Message-ID: <3us5wB3w165w@shakala.com>
  6. Date: 9 Jan 93 22:41:01 GMT
  7. References: <54540004@hpgrla.gr.hp.com>
  8. Organization: Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
  9. Lines: 32
  10.  
  11. galenr@hpgrla.gr.hp.com (Galen Raben) writes:
  12.  
  13. > Would anyone happen to know how to create a custom cursor
  14. > in VB (either 1.0 or 2.0)???  I am in need of a large "box"
  15. > cursor when I pass over a certain set of controls.
  16. > One thought I had is that I could hack one of the preset
  17. > cursors using a resource editor - Since I haven't had
  18. > a need for this before I haven't a clue where to start 
  19. > looking, instinct tells me those are in Windows itself
  20. > though :-(   Is there a way to change one using code and
  21. > have it active only until my application terminates?
  22. > Thanks!!
  23. > - Galen -
  24. > galenr@hpgrla.gr.hp.com
  25.  
  26. The mouse cursors in Windows are limited to 32x32 pixels.
  27.  
  28. You could possibly hide the mouse cursor when the mouse is
  29. over your special area and just draw the rectangle yourself.
  30. You will have to get rid of the rectangle and restore the mouse
  31. cursor when the mouse moves out of the area.  
  32.  
  33. I'm guess these things can be done in VB, I know they can be 
  34. in C.
  35.  
  36. - don
  37.  
  38. ------------------------------------------------------------------
  39. Don Hackler  - donh@shakala.com 
  40. Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
  41.