EndWaitCursor Bug?
Brian Jones -- BrianJ@apptechsys.com Tuesday, September 03, 1996 Environment: VC 4.2, WinNT 4.0 Hi, I have been witnessing strange behavior with the BeginWaitCursor/ EndWaitCursor functions. First of all, the Wait Cursor does not change (from wait to normal) after the EndWaitCursor call until the mouse is moved. I have seen this in all of my programs; I have frequently seen in after a save operation in MSDev. Second, in a Dialog box, the wait cursor will not disappear (after an EndWaitCursor call) until I move the entire cursor (via the mouse) out of the dialog and onto another window. At that time the cursor changes back to normal. Has anyone else experienced this behavior? Are there any solutions to my problem? Thanks, Brian Jones BrianJ@apptechsys.com Bremerton, WA
MICHAEL@datatree.com Wednesday, September 04, 1996 [Mini-digest: 2 responses] Michael wrote: Read MS Article Q131991 "How to change the Mouse Pointer for a Window in MFC." BTW, I empathize with you. The implementation seems unnecessarily cumbersome. Brian wrote: > >Environment: VC 4.2, WinNT 4.0 > > I have been witnessing strange behavior with the BeginWaitCursor/ >EndWaitCursor functions. > > First of all, the Wait Cursor does not change (from wait to normal) >after the EndWaitCursor call until the mouse is moved. I have seen this >in all of my programs; I have frequently seen in after a save operation >in MSDev. > > Second, in a Dialog box, the wait cursor will not disappear (after an >EndWaitCursor call) until I move the entire cursor (via the mouse) out >of the dialog and onto another window. At that time the cursor changes >back to normal. > Michael Thal michael@datatree.com Data Tree Corp. http://www.datatree.com -----From: Brian JonesMichael, Thanks for the info. After reading the article, I believe that I am still in the same situation I was in originally. According to the article, "NOTE: If calls to BeginWaitCursor() and EndWaitCursor() are not in the same handler, you must override OnSetCursor as follows: ..." In my case, all BeginWaitCursor and EndWaitCursor calls are made from within the same function(s). Furthermore, I am not having a problem with the wait cursor disappearing prematurely; my problem is that the wait cursor won't disappear when EndWaitCursor is called. Unless I am not reading the MS article correctly, this situation is not addressed. Thanks for your help and time, Brian
| Вернуться в корень Архива |