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

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!network.ucsd.edu!swrinde!zaphod.mps.ohio-state.edu!wupost!morpheus!jzempel
  2. From: jzempel@morpheus.wustl.edu (John Zempel)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: VB - custom cursors??
  5. Date: 10 Jan 93 19:17:40 GMT
  6. Organization: Washington University in Saint Louis, MO USA
  7. Lines: 43
  8. Message-ID: <jzempel.726693460@morpheus>
  9. References: <54540004@hpgrla.gr.hp.com> <3us5wB3w165w@shakala.com>
  10. NNTP-Posting-Host: morpheus.wustl.edu
  11.  
  12. donh@shakala.com (Don Hackler) writes:
  13.  
  14. >galenr@hpgrla.gr.hp.com (Galen Raben) writes:
  15.  
  16. >> Would anyone happen to know how to create a custom cursor
  17. >> in VB (either 1.0 or 2.0)???  I am in need of a large "box"
  18. >> cursor when I pass over a certain set of controls.
  19. >> 
  20. >> One thought I had is that I could hack one of the preset
  21. >> cursors using a resource editor - Since I haven't had
  22. >> a need for this before I haven't a clue where to start 
  23. >> looking, instinct tells me those are in Windows itself
  24. >> though :-(   Is there a way to change one using code and
  25. >> have it active only until my application terminates?
  26. >> 
  27. >> Thanks!!
  28. >> - Galen -
  29. >> galenr@hpgrla.gr.hp.com
  30.  
  31. >The mouse cursors in Windows are limited to 32x32 pixels.
  32.  
  33. >You could possibly hide the mouse cursor when the mouse is
  34. >over your special area and just draw the rectangle yourself.
  35. >You will have to get rid of the rectangle and restore the mouse
  36. >cursor when the mouse moves out of the area.  
  37.  
  38. >I'm guess these things can be done in VB, I know they can be 
  39. >in C.
  40.  
  41. >- don
  42.  
  43. >------------------------------------------------------------------
  44. >Don Hackler  - donh@shakala.com 
  45. >Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
  46.  
  47. The best way to do this in VB is to purchase the custom control addon called
  48. CCF-Cursors from Desaware.  It is true that you can do it with a DLL written
  49. in C, but the CCF package costs less that $40 and already has been debugged,
  50. so it works!  It also includes some subclassing features that allow you to
  51. detect events that happen on with any control.  The number for Desaware is 
  52. (408) 377-4770.  -Just a satified customer-
  53.  
  54. John
  55.