summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2007-09-27 22:08:35 +0000
committerJason Rumney <jasonr@gnu.org>2007-09-27 22:08:35 +0000
commitb7397c3dea1bcbacfd6c4d98ee74765b8e6e10e6 (patch)
tree8c3a2b77ec4d120966b702ce6da039afbec11918 /lib-src
parent66bfb62c8eb001addd6385059d8bad928f57ddd6 (diff)
downloademacs-b7397c3dea1bcbacfd6c4d98ee74765b8e6e10e6.tar.gz
(w32_window_app): Init common controls when windowed.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 9edba132134..c7f0bcf5613 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -35,6 +35,7 @@ Boston, MA 02110-1301, USA. */
# include <malloc.h>
# include <stdlib.h>
# include <windows.h>
+# include <commctrl.h>
# define NO_SOCKETS_IN_FILE_SYSTEM
@@ -159,9 +160,13 @@ w32_window_app ()
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;
}