summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-28 21:45:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-28 21:45:37 +0000
commit30707c980d1560b358dbf2671a4d2a26a1e8173c (patch)
tree74aee5adaaac976e1398274ca64c5461a60f1feb /plugins/SecureIM/src/main.cpp
parent335ec43a4bfdcbbd0b2257037f1f3e0553d89076 (diff)
various menu initialization quirks
git-svn-id: http://svn.miranda-ng.org/main/trunk@2552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/main.cpp')
-rw-r--r--plugins/SecureIM/src/main.cpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/plugins/SecureIM/src/main.cpp b/plugins/SecureIM/src/main.cpp
index d0ca0a56c1..0591ce40cf 100644
--- a/plugins/SecureIM/src/main.cpp
+++ b/plugins/SecureIM/src/main.cpp
@@ -46,30 +46,27 @@ void AddHookFunction(LPCSTR eventName, MIRANDAHOOK hookFunction) {
HANDLE AddMenuItem(LPCSTR name,int pos,HICON hicon,LPCSTR service,int flags=0,WPARAM wParam=0)
{
- CLISTMENUITEM mi = { 0 };
- mi.cbSize=sizeof(mi);
- mi.flags=flags | CMIF_HIDDEN;
- mi.position=pos;
- mi.hIcon=hicon;
- mi.pszName= (char*)name;
- mi.pszPopupName=(char*)-1;
- mi.pszService=(char*)service;
+ CLISTMENUITEM mi = { sizeof(mi) };
+ mi.flags = flags | CMIF_HIDDEN;
+ mi.position = pos;
+ mi.hIcon = hicon;
+ mi.pszName = (char*)name;
+ mi.pszPopupName = (char*)-1;
+ mi.pszService = (char*)service;
return Menu_AddContactMenuItem(&mi);
}
HANDLE AddSubItem(HANDLE rootid,LPCSTR name,int pos,int poppos,LPCSTR service,WPARAM wParam=0)
{
- CLISTMENUITEM mi = { 0 };
- memset(&mi,0,sizeof(mi));
- mi.cbSize=sizeof(mi);
- mi.flags=CMIF_CHILDPOPUP | CMIF_HIDDEN;
- mi.position=pos;
- mi.popupPosition=poppos;
- mi.hIcon=NULL;
- mi.pszName=(char*)name;
- mi.pszPopupName=(char*)rootid;
- mi.pszService=(char*)service;
+ CLISTMENUITEM mi = { sizeof(mi) };
+ mi.flags = CMIF_CHILDPOPUP | CMIF_HIDDEN;
+ mi.position = pos;
+ mi.popupPosition = poppos;
+ mi.hIcon = NULL;
+ mi.pszName = (char*)name;
+ mi.pszPopupName = (char*)rootid;
+ mi.pszService = (char*)service;
return Menu_AddContactMenuItem(&mi);
}