summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/Skype/contacts.c
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2012-10-15 03:50:19 +0000
committerAlexander Gluzsky <sss123next@list.ru>2012-10-15 03:50:19 +0000
commit1f8d655dc9a8d09a06f638b3417f44b5e2c75e85 (patch)
tree256d7487f8bcf5a8647aad4cf7109270c2fd0e65 /plugins/!NotAdopted/Skype/contacts.c
parentb41d9f7ac1bf955394082f491578a14d5875631f (diff)
Skype protocol ported (untested)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1943 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/Skype/contacts.c')
-rwxr-xr-x[-rw-r--r--]plugins/!NotAdopted/Skype/contacts.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/!NotAdopted/Skype/contacts.c b/plugins/!NotAdopted/Skype/contacts.c
index 45df24821f..bdd6571cc4 100644..100755
--- a/plugins/!NotAdopted/Skype/contacts.c
+++ b/plugins/!NotAdopted/Skype/contacts.c
@@ -158,26 +158,27 @@ HANDLE add_contextmenu(HANDLE hContact) {
if (!HasVoiceService()) {
mi=CallItem();
- hMenuCallItem=(HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0,(LPARAM)&mi);
+ hMenuCallItem=Menu_AddContactMenuItem(&mi);
+
mi=HupItem();
- hMenuCallHangup=(HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0, (LPARAM)&mi);
+ hMenuCallHangup=Menu_AddContactMenuItem(&mi);
}
mi=SkypeOutCallItem();
- hMenuSkypeOutCallItem=(HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0,(LPARAM)&mi);
+ hMenuSkypeOutCallItem=Menu_AddContactMenuItem(&mi);
if (!HasVoiceService()) {
mi=HoldCallItem();
- hMenuHoldCallItem=(HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0,(LPARAM)&mi);
+ hMenuHoldCallItem=Menu_AddContactMenuItem(&mi);
}
// We cannot use flag PF1_FILESEND for sending files, as Skype opens its own
// sendfile-Dialog.
mi=FileTransferItem();
- hMenuFileTransferItem=(HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0,(LPARAM)&mi);
+ hMenuFileTransferItem=Menu_AddContactMenuItem(&mi);
mi=ChatInitItem();
- hMenuChatInitItem=(HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0,(LPARAM)&mi);
+ hMenuChatInitItem=Menu_AddContactMenuItem(&mi);
ZeroMemory(&mi,sizeof(mi));
@@ -188,7 +189,7 @@ HANDLE add_contextmenu(HANDLE hContact) {
mi.pszContactOwner=SKYPE_PROTONAME;
mi.ptszName=LPGENT("Import Skype history");
mi.pszService=SKYPE_IMPORTHISTORY;
- return (HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0,(LPARAM)&mi);
+ return Menu_AddContactMenuItem(&mi);
}
HANDLE add_mainmenu(void) {
@@ -201,8 +202,7 @@ HANDLE add_mainmenu(void) {
mi.pszContactOwner=SKYPE_PROTONAME;
mi.ptszName=LPGENT("Add Skype contact");
mi.pszService=SKYPE_ADDUSER;
- return (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM, (WPARAM)NULL,(LPARAM)&mi);
-
+ return Menu_AddMainMenuItem(&mi);
}
int __cdecl PrebuildContactMenu(WPARAM wParam, LPARAM lParam) {