changeset 21608:d191a8737145

(w32_msg_pump): Handle WM_EMACS_SETLOCALE. (w32_wnd_proc): Handle WM_EMACS_SETFOREGROUND.
author Geoff Voelker <voelker@cs.washington.edu>
date Fri, 17 Apr 1998 05:08:23 +0000
parents 59159a81b101
children 2595beed0362
files src/w32fns.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Fri Apr 17 05:08:02 1998 +0000
+++ b/src/w32fns.c	Fri Apr 17 05:08:23 1998 +0000
@@ -3133,6 +3133,10 @@
 	      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 @@
     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;