From 58973a21a30bf95427fd43c456e41e35c386218c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 15 Jun 2012 18:52:16 +0000 Subject: another portion of "#ifsef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@434 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/opttree.cpp | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'plugins/Popup/src/opttree.cpp') diff --git a/plugins/Popup/src/opttree.cpp b/plugins/Popup/src/opttree.cpp index d6d81c8103..8aa6a737e0 100644 --- a/plugins/Popup/src/opttree.cpp +++ b/plugins/Popup/src/opttree.cpp @@ -40,7 +40,7 @@ static void OptTree_TranslateItem(HWND hwndTree, HTREEITEM hItem) WCHAR unicode[64]; } buf; -#if defined(_UNICODE) + TVITEMW tvi = {0}; tvi.mask = TVIF_HANDLE|TVIF_TEXT; tvi.hItem = hItem; @@ -50,32 +50,6 @@ static void OptTree_TranslateItem(HWND hwndTree, HTREEITEM hItem) tvi.pszText = TranslateW(tvi.pszText); tvi.cchTextMax = lstrlenW(tvi.pszText); SendMessageW(hwndTree, TVM_SETITEMW, 0, (LPARAM)&tvi); - -#else - if (g_popup.isOsUnicode && MySendMessageW) - { - TVITEMW tvi = {0}; - tvi.mask = TVIF_HANDLE|TVIF_TEXT; - tvi.hItem = hItem; - tvi.pszText = buf.unicode; - tvi.cchTextMax = SIZEOF(buf.unicode); - MySendMessageW(hwndTree, TVM_GETITEMW, 0, (LPARAM)&tvi); - tvi.pszText = TranslateW(tvi.pszText); - tvi.cchTextMax = lstrlenW(tvi.pszText); - MySendMessageW(hwndTree, TVM_SETITEMW, 0, (LPARAM)&tvi); - } - else { - TVITEMA tvi = {0}; - tvi.mask = TVIF_HANDLE|TVIF_TEXT; - tvi.hItem = hItem; - tvi.pszText = buf.ansi; - tvi.cchTextMax = SIZEOF(buf.ansi); - SendMessageA(hwndTree, TVM_GETITEMA, 0, (LPARAM)&tvi); - tvi.pszText = Translate(tvi.pszText); - tvi.cchTextMax = lstrlenA(tvi.pszText); - SendMessageA(hwndTree, TVM_SETITEMA, 0, (LPARAM)&tvi); - } -#endif } void OptTree_Translate(HWND hwndTree) -- cgit v1.2.3