home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3331 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.4 KB  |  45 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!caen!sol.ctr.columbia.edu!cortex.prospect.com!mboucher
  3. From: mboucher@cortex.prospect.com (Mike Boucher)
  4. Subject: Hourglass cursor help needed!
  5. Sender: nobody@ctr.columbia.edu
  6. Organization: Cortex Corporation, Waltham, MA, USA
  7. Date: Mon, 9 Nov 1992 22:10:58 GMT
  8. Message-ID: <1992Nov9.171058.1@cortex>
  9. Lines: 32
  10. X-Posted-From: cortex.prospect.com
  11. NNTP-Posting-Host: sol.ctr.columbia.edu
  12.  
  13. Hi there,
  14.  
  15. A while back, I posted this question, but I got no answer from e-mail, and
  16. my mail server was totally screwed up, so here goes again...
  17.  
  18. I have the following code, which should change my cursor to the hourglass...
  19.  
  20.   SetCapture(hWnd);
  21.   hHourGlass = LoadCursor(NULL, IDC_WAIT);
  22.   hOrigCurr = SetCursor(hHourGlass);
  23.  
  24.   CVSendItem (hWnd, STRTAPPOP, ...); <- obscenely long routine...
  25.  
  26.   SetCursor(hOrigCurr);
  27.   ReleaseCapture();
  28.  
  29. When defining the windows class, I have this line...
  30.   wc.hCursor = NULL;
  31.  
  32. When I call the SetCursor, the cursor changes to the hourglass, and changes
  33. right back to the arrow.  I'ts so fast It's barely noticable.  Any ideas what
  34. I'm doing wrong?
  35.  
  36. thanx.
  37. Mike
  38.  
  39. PS - Please e-mail, as my mail server is likely to die again.  I'll post (if
  40. possible) the resolution.
  41. -- 
  42. Mike Boucher            mboucher@cortex.prospect.com
  43. Cortex Corp            "Don't take life too seriously, you'll never
  44. Waltham, MA, USA         get out of it alive!"
  45.