diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_menus.cpp | 16 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.h | 2 |
2 files changed, 8 insertions, 10 deletions
diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp index 1b4494312e..8b640a423b 100644 --- a/protocols/SkypeWeb/src/skype_menus.cpp +++ b/protocols/SkypeWeb/src/skype_menus.cpp @@ -104,25 +104,21 @@ int CSkypeProto::OnInitStatusMenu() mi.flags = CMIF_ROOTPOPUP | CMIF_TCHAR | CMIF_KEEPUNTRANSLATED;
mi.icolibItem = GetSkinIconHandle("main");
hStatusMunuRoot = /*m_hMenuRoot = */Menu_AddProtoMenuItem(&mi);
-
- /*
- mi.pszService = MODULE"/CreateNewChat";
- mi.ptszName = LPGENT("Create new chat");
- mi.position = 10009 + PMI_CREATECHAT;
- mi.icolibItem = LoadSkinnedIconHandle(SKINICON_CHAT_JOIN);
- ProtoMenuItems[PMI_CREATECHAT] = Menu_AddProtoMenuItem(&mi);
- CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::SvcCreateChat>);
- */
}
+
/*else
{
if (m_hMenuRoot)
CallService(MO_REMOVEMENUITEM, (WPARAM)m_hMenuRoot, 0);
m_hMenuRoot = NULL;
}*/
-
mi.hParentMenu = hStatusMunuRoot;
mi.flags = CMIF_CHILDPOPUP | CMIF_TCHAR;
+ mi.ptszName = LPGENT("Create new chat");
+ mi.pszService = MODULE"/CreateNewChat";
+ mi.position = SMI_POSITION + PMI_CREATECHAT;
+ Menu_AddProtoMenuItem(&mi);
+ CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::SvcCreateChat>);
return 0;
}
\ No newline at end of file diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 761a8c7305..72e4886223 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -245,7 +245,9 @@ private: static INT_PTR __stdcall InviteDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static INT_PTR __stdcall GcCreateDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+
INT_PTR __cdecl SvcCreateChat(WPARAM, LPARAM);
+
void CreateNewChat(LIST<char> &uids, LPCTSTR ptszTitle);
//polling
|