Skip to content

Commit

Permalink
- Fixed DoEvent. Now properly processes and removes all events from q…
Browse files Browse the repository at this point in the history
…ueue.

svn path=/trunk/mcs/; revision=26034
  • Loading branch information
Peter Dennis Bartok committed Apr 27, 2004
1 parent b2214b3 commit cb2ec75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,12 @@ public static void DoEvents ()
{
MSG msg = new MSG();

while (Win32.PeekMessageA (ref msg, (IntPtr) 0, 0, 0,
(uint)PeekMessageFlags.PM_REMOVE) != 0);
while (Win32.PeekMessageA (ref msg, (IntPtr) 0, 0, 0, (uint)PeekMessageFlags.PM_REMOVE) != 0) {
if (msg.message==Msg.WM_PAINT) {
Win32.TranslateMessage(ref msg);
Win32.DispatchMessageA(ref msg);
}
}
}

//Compact Framework
Expand Down
4 changes: 4 additions & 0 deletions mcs/class/System.Windows.Forms/System.Windows.Forms/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2004-04-26 Peter Bartok <[email protected]>
* Application.cs: Fixed DoEvents. PeekMessage does not dispatch and remove
WM_PAINT messages, added code to specifically handle WM_PAINT.

2004-04-24 Todd Berman <[email protected]>

* Control.cs: Add handle checking in Control.Show ()
Expand Down

0 comments on commit cb2ec75

Please sign in to comment.