From 87ee76a5b9e52201aaf982fd98479f4edf167b5b Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 11 Apr 2013 21:39:54 +0000 Subject: unicode status icons git-svn-id: http://svn.miranda-ng.org/main/trunk@4428 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/src/spellchecker.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/SpellChecker') diff --git a/plugins/SpellChecker/src/spellchecker.cpp b/plugins/SpellChecker/src/spellchecker.cpp index f932eac92b..fda33b9043 100644 --- a/plugins/SpellChecker/src/spellchecker.cpp +++ b/plugins/SpellChecker/src/spellchecker.cpp @@ -74,15 +74,15 @@ static int IconsChanged(WPARAM wParam, LPARAM lParam) StatusIconData sid = { sizeof(sid) }; sid.szModule = MODULE_NAME; sid.hIconDisabled = Skin_GetIcon("spellchecker_disabled"); - sid.flags = MBF_HIDDEN; + sid.flags = MBF_HIDDEN | MBF_TCHAR; for (int i = 0; i < languages.getCount(); i++) { sid.dwId = i; - char tmp[128]; - mir_snprintf(tmp, SIZEOF(tmp), "%s - %S", - Translate("Spell Checker"), languages[i]->full_name); - sid.szTooltip = tmp; + TCHAR tmp[128]; + mir_sntprintf(tmp, SIZEOF(tmp), _T("%s - %s"), + TranslateT("Spell Checker"), languages[i]->full_name); + sid.tszTooltip = tmp; HICON hIcon = (opts.use_flags) ? Skin_GetIconByHandle(languages[i]->hIcolib) : Skin_GetIcon("spellchecker_enabled"); sid.hIcon = CopyIcon(hIcon); -- cgit v1.2.3