From 8f2ff9fc869299d29f42d2c05ef0b8a364e55e52 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 29 Aug 2006 19:26:50 +0000 Subject: updated for version 7.0-074 --- src/gui_w48.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gui_w48.c') 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); } -- cgit v1.2.1