M
Michel
How to force the redrawing of a Form?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Michel said:How to force the redrawing of a Form?
Jay B. Harlow said:Armin,
Curious, I am running WinXP and am using Refresh and it IS updating
the screen and I am not using DoEvents. ;-)
However I am not blocking the windows message queue, I'm in the
middle of dragging the mouse which is flooding the windows message
queue with mouse messages, not allowing the Paint message to be seen.
Hence needing Refresh over just invalidate. In other words threads &
do events are not appropriate in my case. I do use just invalidate in
some other places as I do not need to update the screen
immediately...
Do you have a (more) specific link that you are referring to?
The one
I found was titled "About Messages and Message Queues",
I didn't
realize that XP used a ghost window when you app is hung (i.e. its
blocking reading the windows message queue).
Calling Doevents (or coming up for air as I sometimes say) was a good
idea even in previous versions of Windows. At the very least it
allows you to display a cancel button, so the user can cancel the
operation.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.