diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-20 19:55:50 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-20 19:55:50 +0000 |
commit | d721eb216a8c38e4f0948ef652d0e89af3a347fd (patch) | |
tree | 9200c1adb211df87ff9cd09991fc2a44c3278f61 | |
parent | 883ac8bf82480595c0b013657736913418da6b61 (diff) |
SkypeWeb: Chat creating part 1.1.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12989 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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
|