From c13392f8596e858110dc4c61fbdf1d41e47cc8a9 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 21 Apr 2014 17:39:45 +0000 Subject: - Added lParam to POPUPCLASS - Removed MS_POPUP_ISSECONDLINESHOWN - Support for mutating popups in Facebook git-svn-id: http://svn.miranda-ng.org/main/trunk@9021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/events.cpp | 3 +-- protocols/FacebookRM/src/proto.cpp | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/FacebookRM/src') diff --git a/protocols/FacebookRM/src/events.cpp b/protocols/FacebookRM/src/events.cpp index e1e3ac560f..8604d58492 100644 --- a/protocols/FacebookRM/src/events.cpp +++ b/protocols/FacebookRM/src/events.cpp @@ -86,8 +86,7 @@ HWND FacebookProto::NotifyEvent(TCHAR* title, TCHAR* info, MCONTACT contact, DWO pd.PluginData = data; } - if (CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&pd) == 0) - return NULL; // TODO: return popup window handle (to allow closing them) + return (HWND) CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&pd); } } else { if (ServiceExists(MS_CLIST_SYSTRAY_NOTIFY)) diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 7ceab6fc52..abd24e7d7d 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -811,7 +811,8 @@ void FacebookProto::InitPopups() { POPUPCLASS ppc = { sizeof(ppc) }; ppc.flags = PCF_TCHAR; - ppc.PluginWindowProc = (WNDPROC)PopupDlgProc; + ppc.PluginWindowProc = PopupDlgProc; + ppc.lParam = APF_RETURN_HWND; TCHAR desc[256]; char name[256]; -- cgit v1.2.3