diff options
author | Andrew Innes <andrewi@gnu.org> | 1999-07-01 19:48:55 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 1999-07-01 19:48:55 +0000 |
commit | 716490f0c2a66464638f25cafed4dd3f22452865 (patch) | |
tree | 6361535bbcfeda6f6793afcdefa8bcd8509fad45 /src/w32xfns.c | |
parent | b37ac782fcdddd79d77112c476bd93519a10bd6b (diff) |
(drain_message_queue): New function.
Diffstat (limited to 'src/w32xfns.c')
-rw-r--r-- | src/w32xfns.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/w32xfns.c b/src/w32xfns.c index 7c61b24152..617eec7841 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -239,6 +239,19 @@ prepend_msg (W32Msg *lpmsg) 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 |