diff src/w32xfns.c @ 24917:600578f35004

(drain_message_queue): New function.
author Andrew Innes <andrewi@gnu.org>
date Thu, 01 Jul 1999 19:48:55 +0000
parents afcb561b535d
children b7aa6ac26872
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