summaryrefslogtreecommitdiff
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-08-29 19:26:50 +0000
committerBram Moolenaar <Bram@vim.org>2006-08-29 19:26:50 +0000
commit8f2ff9fc869299d29f42d2c05ef0b8a364e55e52 (patch)
tree6af8cbadd6f12081886718d671b5d6f2c377ac76 /src/gui_w48.c
parent7073cc84bc62549c000ea32f08392db4a52f4835 (diff)
downloadvim-git-8f2ff9fc869299d29f42d2c05ef0b8a364e55e52.tar.gz
updated for version 7.0-074v7.0.074
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 06039a5fb..5fb3b9798 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -2194,7 +2194,18 @@ gui_mch_show_toolbar(int showit)
return;
if (showit)
+ {
+# ifdef FEAT_MBYTE
+# ifndef TB_SETUNICODEFORMAT
+ /* For older compilers. We assume this never changes. */
+# define TB_SETUNICODEFORMAT 0x2005
+# endif
+ /* Enable/disable unicode support */
+ int uu = (enc_codepage >= 0 && (int)GetACP() != enc_codepage);
+ SendMessage(s_toolbarhwnd, TB_SETUNICODEFORMAT, (WPARAM)uu, (LPARAM)0);
+# endif
ShowWindow(s_toolbarhwnd, SW_SHOW);
+ }
else
ShowWindow(s_toolbarhwnd, SW_HIDE);
}