From dbf60b0750ca6df0558bf7e678f20109be29397d Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 27 Sep 2007 22:08:59 +0000 Subject: (w32_window_app): Init common controls when windowed. --- lib-src/emacsclient.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib-src/emacsclient.c') diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 9edba13213..c7f0bcf561 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -35,6 +35,7 @@ Boston, MA 02110-1301, USA. */ # include # include # include +# include # 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; } -- cgit v1.2.3