diff options
Diffstat (limited to 'plugins/SecureIM/src/main.cpp')
-rw-r--r-- | plugins/SecureIM/src/main.cpp | 33 |
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);
}
|