diff options
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r-- | protocols/Skype/src/skype_utils.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp index f24f347965..db4e5f60ba 100644 --- a/protocols/Skype/src/skype_utils.cpp +++ b/protocols/Skype/src/skype_utils.cpp @@ -161,7 +161,7 @@ void CSkypeProto::ShowNotification(const wchar_t *sid, const wchar_t *message, i {
if (::Miranda_Terminated()) return;
- if (!::ServiceExists(MS_POPUP_ADDPOPUPCLASS))
+ if ( !ServiceExists(MS_POPUP_ADDPOPUPEX) || !DBGetContactSettingByte(NULL, "PopUp", "ModuleIsEnabled", 1) )
{
MessageBoxW(
NULL,
@@ -171,10 +171,15 @@ void CSkypeProto::ShowNotification(const wchar_t *sid, const wchar_t *message, i }
else
{
- POPUPDATACLASS ppd = { sizeof(ppd) };
- ppd.ptszTitle = sid;
- ppd.ptszText = message;
-
- ::CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
+ POPUPDATAT_V2 ppd = {0};
+ ppd.cbSize = sizeof(POPUPDATAT_V2);
+ ppd.lchContact = NULL;
+ lstrcpyn(ppd.lpwzContactName, sid, MAX_CONTACTNAME);
+ lstrcpyn(ppd.lpwzText, message, MAX_SECONDLINE);
+ ppd.lchIcon = (HICON)CallService(MS_SKIN2_GETICON, 0, (LPARAM)"Skype_main");
+ ppd.colorBack = ppd.colorText = 0;
+ ppd.iSeconds = 0;
+
+ ::CallService(MS_POPUP_ADDPOPUPT, (WPARAM)&ppd, 0);
}
}
\ No newline at end of file |