diff options
| author | Andrew Innes | 1999-07-01 19:48:55 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-07-01 19:48:55 +0000 |
| commit | 716490f0c2a66464638f25cafed4dd3f22452865 (patch) | |
| tree | 6361535bbcfeda6f6793afcdefa8bcd8509fad45 /src | |
| parent | b37ac782fcdddd79d77112c476bd93519a10bd6b (diff) | |
| download | emacs-716490f0c2a66464638f25cafed4dd3f22452865.tar.gz emacs-716490f0c2a66464638f25cafed4dd3f22452865.zip | |
(drain_message_queue): New function.
Diffstat (limited to 'src')
| -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 7c61b241520..617eec7841b 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c | |||
| @@ -239,6 +239,19 @@ prepend_msg (W32Msg *lpmsg) | |||
| 239 | return (TRUE); | 239 | return (TRUE); |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | /* Process all messages in the current thread's queue. */ | ||
| 243 | void | ||
| 244 | drain_message_queue () | ||
| 245 | { | ||
| 246 | MSG msg; | ||
| 247 | while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) | ||
| 248 | { | ||
| 249 | TranslateMessage (&msg); | ||
| 250 | DispatchMessage (&msg); | ||
| 251 | } | ||
| 252 | } | ||
| 253 | |||
| 254 | |||
| 242 | /* | 255 | /* |
| 243 | * XParseGeometry parses strings of the form | 256 | * XParseGeometry parses strings of the form |
| 244 | * "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where | 257 | * "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where |