diff options
| author | Jason Rumney | 2007-09-27 22:08:59 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-09-27 22:08:59 +0000 |
| commit | dbf60b0750ca6df0558bf7e678f20109be29397d (patch) | |
| tree | 778bf128ae888fe699b4d1e7283dcd16b33d7597 | |
| parent | 2e2d237718880d99e5d26c332bb1b7d095c77406 (diff) | |
| download | emacs-dbf60b0750ca6df0558bf7e678f20109be29397d.tar.gz emacs-dbf60b0750ca6df0558bf7e678f20109be29397d.zip | |
(w32_window_app): Init common controls when windowed.
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index fca9e1c2e66..a09ba2c078c 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-09-27 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * makefile.w32-in (emacsclient, emacsclientw): Link to COMCTL32. | ||
| 4 | |||
| 5 | * emacsclient.c (w32_window_app): Init common controls when windowed. | ||
| 6 | |||
| 1 | 2007-08-25 Eli Zaretskii <eliz@gnu.org> | 7 | 2007-08-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff): | 9 | * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff): |
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. */ | |||
| 35 | # include <malloc.h> | 35 | # include <malloc.h> |
| 36 | # include <stdlib.h> | 36 | # include <stdlib.h> |
| 37 | # include <windows.h> | 37 | # include <windows.h> |
| 38 | # include <commctrl.h> | ||
| 38 | 39 | ||
| 39 | # define NO_SOCKETS_IN_FILE_SYSTEM | 40 | # define NO_SOCKETS_IN_FILE_SYSTEM |
| 40 | 41 | ||
| @@ -159,9 +160,13 @@ w32_window_app () | |||
| 159 | char szTitle[MAX_PATH]; | 160 | char szTitle[MAX_PATH]; |
| 160 | 161 | ||
| 161 | if (window_app < 0) | 162 | if (window_app < 0) |
| 162 | /* Checking for STDOUT does not work; it's a valid handle also in | 163 | { |
| 163 | nonconsole apps. Testing for the console title seems to work. */ | 164 | /* Checking for STDOUT does not work; it's a valid handle also in |
| 164 | window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); | 165 | nonconsole apps. Testing for the console title seems to work. */ |
| 166 | window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); | ||
| 167 | if (window_app) | ||
| 168 | InitCommonControls(); | ||
| 169 | } | ||
| 165 | 170 | ||
| 166 | return window_app; | 171 | return window_app; |
| 167 | } | 172 | } |