home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!caen!sol.ctr.columbia.edu!cortex.prospect.com!mboucher
- From: mboucher@cortex.prospect.com (Mike Boucher)
- Subject: Hourglass cursor help needed!
- Sender: nobody@ctr.columbia.edu
- Organization: Cortex Corporation, Waltham, MA, USA
- Date: Mon, 9 Nov 1992 22:10:58 GMT
- Message-ID: <1992Nov9.171058.1@cortex>
- Lines: 32
- X-Posted-From: cortex.prospect.com
- NNTP-Posting-Host: sol.ctr.columbia.edu
-
- Hi there,
-
- A while back, I posted this question, but I got no answer from e-mail, and
- my mail server was totally screwed up, so here goes again...
-
- I have the following code, which should change my cursor to the hourglass...
-
- SetCapture(hWnd);
- hHourGlass = LoadCursor(NULL, IDC_WAIT);
- hOrigCurr = SetCursor(hHourGlass);
-
- CVSendItem (hWnd, STRTAPPOP, ...); <- obscenely long routine...
-
- SetCursor(hOrigCurr);
- ReleaseCapture();
-
- When defining the windows class, I have this line...
- wc.hCursor = NULL;
-
- When I call the SetCursor, the cursor changes to the hourglass, and changes
- right back to the arrow. I'ts so fast It's barely noticable. Any ideas what
- I'm doing wrong?
-
- thanx.
- Mike
-
- PS - Please e-mail, as my mail server is likely to die again. I'll post (if
- possible) the resolution.
- --
- Mike Boucher mboucher@cortex.prospect.com
- Cortex Corp "Don't take life too seriously, you'll never
- Waltham, MA, USA get out of it alive!"
-