From 97e207d17f76808160865b254a5d61c3ab86cebf Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Tue, 16 Sep 2014 07:13:53 +0000 Subject: =?UTF-8?q?VKontakte:=20Rework=20menu=20items=20Add=20=E2=80=98Vis?= =?UTF-8?q?it=20profile=E2=80=99=20menu=20items=20Remove=20=20=E2=80=98Rel?= =?UTF-8?q?oad=20all=20messages=20from=20vk.com=E2=80=99=20for=20chats=20S?= =?UTF-8?q?ome=20cosmetic=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@10467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_proto.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte/src/vk_proto.h') diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 497b4da7c9..466ac13fdb 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -17,6 +17,7 @@ along with this program. If not, see . #define PS_CREATECHAT "/CreateNewChat" #define PS_GETALLSERVERHISTORY "/GetAllServerHystory" +#define PS_VISITPROFILE "/VisitProfile" #define MAXHISTORYMIDSPERONE 200 struct CVkProto; @@ -191,9 +192,16 @@ struct CVkProto : public PROTO INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); INT_PTR __cdecl SvcGetAvatarInfo(WPARAM, LPARAM); INT_PTR __cdecl SvcGetAvatarCaps(WPARAM, LPARAM); - INT_PTR __cdecl SvcGetAllServerHistory(WPARAM wParam, LPARAM); - INT_PTR __cdecl SetListeningTo(WPARAM, LPARAM); + INT_PTR __cdecl SvcSetListeningTo(WPARAM, LPARAM); + //==== Menus ========================================================================== + + INT_PTR __cdecl SvcVisitProfile(WPARAM hContact, LPARAM); + INT_PTR __cdecl SvcGetAllServerHistory(WPARAM hContact, LPARAM); + void InitMenus(); + void UnInitMenus(); + int __cdecl OnPreBuildContactMenu(WPARAM hContact, LPARAM); + //==== Misc ========================================================================== TCHAR* GetUserStoredPassword(void); @@ -249,6 +257,20 @@ private: bool m_bTerminated, m_bServerDelivery; CMStringA m_prevUrl; + enum CLMenuIndexes { + CMI_GETALLSERVERHISTORY, + CMI_VISITPROFILE, + CMI_COUNT + }; + enum ProtoMenuIndexes { + PMI_CREATECHAT, + PMI_VISITPROFILE, + PMI_COUNT + }; + + HGENMENU g_hContactMenuItems[CMI_COUNT]; + HGENMENU g_hProtoMenuItems[PMI_COUNT]; + struct Cookie { Cookie(const CMStringA& name, const CMStringA& value, const CMStringA& domain) : -- cgit v1.2.3