Home All Groups Group Topic Archive Search About
Author
25 Mar 2005 3:26 AM
David Sobey
i'm calling refresh() on a custom UserControl, but for some reason
other functions get processed before OnPaint. Any ideas why?

cheers
dave

Author
25 Mar 2005 10:41 AM
Mattias Sjögren
David,

>i'm calling refresh() on a custom UserControl, but for some reason
>other functions get processed before OnPaint. Any ideas why?

WM_PAINT messages (which result in OnPaint getting called) are low
priority messages that are sent only when there are no other messages
in the message queue.



Mattias

--
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

AddThis Social Bookmark Button