summaryrefslogtreecommitdiff
path: root/plugins/NewEventNotify
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-12-05 19:20:41 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-12-05 19:20:41 +0000
commit6398843b9b87c71ee92e59d8a798adbb3daa435f (patch)
tree95ac59498721f5505865477faff7e111046c955f /plugins/NewEventNotify
parent58d2687c051d0fdfd8c3231862a18f1a50972c23 (diff)
-fixed menu item translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@7056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewEventNotify')
-rw-r--r--plugins/NewEventNotify/src/menuitem.cpp18
1 files changed, 10 insertions, 8 deletions
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;