diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-09 16:04:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-09 16:04:29 +0000 |
commit | d5d717d422bebddd058522931de4653389861a92 (patch) | |
tree | b476b62e7991e5a23a28e3029288df90a413dd4d /protocols/WhatsApp/src/proto.cpp | |
parent | e52132834312c3d956323650f4fa34e94b95325e (diff) |
also custom stubs removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5299 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index bd74705bce..5a6cab3f85 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -10,12 +10,12 @@ WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) : update_loop_lock_ = CreateEvent(NULL, false, false, NULL);
FMessage::generating_lock = new Mutex();
- CreateProtoService(m_szModuleName, PS_CREATEACCMGRUI, &WhatsAppProto::SvcCreateAccMgrUI, this);
- CreateProtoService(m_szModuleName, PS_JOINCHAT, &WhatsAppProto::OnJoinChat, this);
- CreateProtoService(m_szModuleName, PS_LEAVECHAT, &WhatsAppProto::OnLeaveChat, this);
+ CreateService(PS_CREATEACCMGRUI, &WhatsAppProto::SvcCreateAccMgrUI);
+ CreateService(PS_JOINCHAT, &WhatsAppProto::OnJoinChat);
+ CreateService(PS_LEAVECHAT, &WhatsAppProto::OnLeaveChat);
- HookProtoEvent(ME_CLIST_PREBUILDSTATUSMENU, &WhatsAppProto::OnBuildStatusMenu, this);
- HookProtoEvent(ME_GC_EVENT, &WhatsAppProto::OnChatOutgoing, this);
+ HookEvent(ME_GC_EVENT, &WhatsAppProto::OnChatOutgoing);
+ HookEvent(ME_CLIST_PREBUILDSTATUSMENU, &WhatsAppProto::OnBuildStatusMenu);
this->InitContactMenus();
@@ -279,9 +279,9 @@ string WhatsAppProto::Register(int state, string cc, string number, string code) //////////////////////////////////////////////////////////////////////////////
// EVENTS
-int WhatsAppProto::SvcCreateAccMgrUI(WPARAM wParam,LPARAM lParam)
+INT_PTR WhatsAppProto::SvcCreateAccMgrUI(WPARAM wParam,LPARAM lParam)
{
- return (int)CreateDialogParam(g_hInstance, MAKEINTRESOURCE(IDD_WHATSAPPACCOUNT),
+ return (INT_PTR)CreateDialogParam(g_hInstance, MAKEINTRESOURCE(IDD_WHATSAPPACCOUNT),
(HWND)lParam, WhatsAppAccountProc, (LPARAM)this );
}
|