diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-25 19:17:44 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-25 19:17:44 +0000 |
commit | 5c131b167713e3f44e00a96cdbee389c7bddc760 (patch) | |
tree | ec36ca5f1d08fc5571bd91119af37de4c71b463e /protocols/SkypeWeb/src/skype_menus.cpp | |
parent | 1d14eafc4f0cf923e5bc835ae5c09c4b75c76b85 (diff) |
SkypeWeb: DestroyChatRoom menu item.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_menus.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_menus.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp index ec2710f29a..e461ac5b81 100644 --- a/protocols/SkypeWeb/src/skype_menus.cpp +++ b/protocols/SkypeWeb/src/skype_menus.cpp @@ -28,7 +28,10 @@ int CSkypeProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM) return 0;
if (this->isChatRoom(hContact))
+ {
+ Menu_ShowItem(ContactMenuItems[CMI_DESTROYCHAT], true);
return 0;
+ }
bool isCtrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
bool isAuthNeed = getByte(hContact, "Auth", 0) > 0;
@@ -80,6 +83,13 @@ void CSkypeProto::InitMenus() mi.icolibItem = GetIconHandle("synchistory");
ContactMenuItems[CMI_GETSERVERHISTORY] = Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::GetContactHistory>);
+
+ mi.pszService = MODULE"/DestroyChat";
+ mi.position = CMI_POSITION + CMI_DESTROYCHAT;
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_CHAT_LEAVE);
+ mi.ptszName = LPGENT("Destroy room");
+ ContactMenuItems[CMI_DESTROYCHAT] = Menu_AddContactMenuItem(&mi);
+ CreateServiceFunction(mi.pszService, GlobalService<&CSkypeProto::SvcDestroyChat>);
}
void CSkypeProto::UninitMenus()
|