changeset 24917:600578f35004

(drain_message_queue): New function.
author Andrew Innes <andrewi@gnu.org>
date Thu, 01 Jul 1999 19:48:55 +0000
parents dcad7c5b7add
children 5784771d1cca
files src/w32xfns.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32xfns.c	Thu Jul 01 19:48:19 1999 +0000
+++ b/src/w32xfns.c	Thu Jul 01 19:48:55 1999 +0000
@@ -239,6 +239,19 @@
   return (TRUE);
 }
 
+/* Process all messages in the current thread's queue.  */
+void
+drain_message_queue ()
+{
+  MSG msg;
+  while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
+    {
+      TranslateMessage (&msg);
+      DispatchMessage (&msg);
+    }
+}
+
+
 /*
  *    XParseGeometry parses strings of the form
  *   "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where