changeset 78904:5025525d6c9d

(w32_window_app): Init common controls when windowed.
author Jason Rumney <jasonr@gnu.org>
date Thu, 27 Sep 2007 22:08:35 +0000
parents e7e6abb88c1c
children a7bc22aba8a4
files lib-src/emacsclient.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Thu Sep 27 22:08:19 2007 +0000
+++ b/lib-src/emacsclient.c	Thu Sep 27 22:08:35 2007 +0000
@@ -35,6 +35,7 @@
 # include <malloc.h>
 # include <stdlib.h>
 # include <windows.h>
+# include <commctrl.h>
 
 # define NO_SOCKETS_IN_FILE_SYSTEM
 
@@ -159,9 +160,13 @@
   char szTitle[MAX_PATH];
 
   if (window_app < 0)
-    /* Checking for STDOUT does not work; it's a valid handle also in
-       nonconsole apps.  Testing for the console title seems to work. */
-    window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0);
+    {
+      /* Checking for STDOUT does not work; it's a valid handle also in
+         nonconsole apps.  Testing for the console title seems to work. */
+      window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0);
+      if (window_app)
+        InitCommonControls();
+    }
 
   return window_app;
 }