From dfdb40475375492408ecfc341a18a2b5d0faefa4 Mon Sep 17 00:00:00 2001 From: Geoff Voelker Date: Fri, 17 Apr 1998 05:08:23 +0000 Subject: [PATCH] (w32_msg_pump): Handle WM_EMACS_SETLOCALE. (w32_wnd_proc): Handle WM_EMACS_SETFOREGROUND. --- src/w32fns.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/w32fns.c b/src/w32fns.c index 48f6d2c800d..50f352d1a69 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -3133,6 +3133,10 @@ w32_msg_pump (deferred_msg * msg_buf) if (!PostThreadMessage (dwMainThreadId, WM_EMACS_DONE, 0, 0)) abort (); break; + case WM_EMACS_SETLOCALE: + SetThreadLocale (msg.wParam); + /* Reply is not expected. */ + break; default: /* No need to be so draconian! */ /* abort (); */ @@ -3771,6 +3775,9 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) case WM_EMACS_SHOWWINDOW: return ShowWindow ((HWND) wParam, (WPARAM) lParam); + case WM_EMACS_SETFOREGROUND: + return SetForegroundWindow ((HWND) wParam); + case WM_EMACS_SETWINDOWPOS: { WINDOWPOS * pos = (WINDOWPOS *) wParam; -- 2.39.2