15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


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 Jones 

Michael,

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





| Вернуться в корень Архива |