From 6398843b9b87c71ee92e59d8a798adbb3daa435f Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 5 Dec 2013 19:20:41 +0000 Subject: -fixed menu item translation git-svn-id: http://svn.miranda-ng.org/main/trunk@7056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/src/menuitem.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'plugins/NewEventNotify/src') diff --git a/plugins/NewEventNotify/src/menuitem.cpp b/plugins/NewEventNotify/src/menuitem.cpp index f23cfb3557..2646002591 100644 --- a/plugins/NewEventNotify/src/menuitem.cpp +++ b/plugins/NewEventNotify/src/menuitem.cpp @@ -40,12 +40,14 @@ static INT_PTR MenuitemNotifyCmd(WPARAM wParam,LPARAM lParam) int MenuitemUpdate(BOOL bStatus) { CLISTMENUITEM mi = { sizeof(mi) }; - mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(bStatus ? IDI_ENABLED : IDI_DISABLED)); - if (bStatus) - mi.ptszName = TranslateT(MENUITEM_DISABLE); - else - mi.ptszName = TranslateT(MENUITEM_ENABLE); - mi.flags = CMIM_ICON | CMIM_NAME | CMIF_KEEPUNTRANSLATED | CMIF_TCHAR; + if (bStatus) { + mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ENABLED)); + mi.pszName = MENUITEM_DISABLE; + } else { + mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_DISABLED)); + mi.pszName = MENUITEM_ENABLE; + } + mi.flags = CMIM_ICON | CMIM_NAME; Menu_ModifyItem(hMenuitemNotify, &mi); return 0; @@ -58,9 +60,9 @@ int MenuitemInit(BOOL bStatus) CLISTMENUITEM mi = { sizeof(mi) }; mi.position = 1; mi.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ENABLED)); - mi.ptszPopupName = TranslateT("Popups"); + mi.pszPopupName = LPGEN("Popups"); mi.pszService = MS_NEN_MENUNOTIFY; - mi.flags = CMIF_KEEPUNTRANSLATED | CMIF_TCHAR; + mi.flags = 0; hMenuitemNotify = Menu_AddMainMenuItem(&mi); bNotify = bStatus; -- cgit v1.2.3