summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-10-20 12:41:42 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-10-20 12:41:42 +0000
commitdf73a896acdae7c5a8f4f73e81b9d1437d2a415d (patch)
tree825161cf85da17fd2b9f4a6067e68b90cdb096c8 /protocols/WhatsApp/src/proto.cpp
parent2c1284aabea8b562e9e1e32ce6ef8d91a817d403 (diff)
options page added
git-svn-id: http://svn.miranda-ng.org/main/trunk@6551 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 648accab5b..69f5931026 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -16,6 +16,7 @@ WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) :
HookProtoEvent(ME_GC_EVENT, &WhatsAppProto::OnChatOutgoing);
HookProtoEvent(ME_CLIST_PREBUILDSTATUSMENU, &WhatsAppProto::OnBuildStatusMenu);
+ HookProtoEvent(ME_OPT_INITIALISE, &WhatsAppProto::OnOptionsInit);
this->InitContactMenus();
@@ -282,6 +283,23 @@ INT_PTR WhatsAppProto::SvcCreateAccMgrUI(WPARAM wParam,LPARAM lParam)
(HWND)lParam, WhatsAppAccountProc, (LPARAM)this );
}
+int WhatsAppProto::OnOptionsInit(WPARAM wParam, LPARAM lParam)
+{
+ OPTIONSDIALOGPAGE odp = {sizeof(odp)};
+ odp.hInstance = g_hInstance;
+ odp.ptszTitle = m_tszUserName;
+ odp.dwInitParam = LPARAM(this);
+ odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR | ODPF_DONTTRANSLATE;
+
+ odp.position = 1;
+ odp.ptszGroup = LPGENT("Network");
+ odp.ptszTab = LPGENT("Account");
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_WHATSAPOPTIONS);
+ odp.pfnDlgProc = WhatsAppAccountProc;
+ Options_AddPage(wParam, &odp);
+ return 0;
+}
+
int WhatsAppProto::RefreshBuddyList(WPARAM, LPARAM )
{
debugLogA("");