diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-10-21 08:18:19 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-10-21 08:18:19 +0000 |
commit | 68d9f580b716d6ba9103663f3fc1637f41e162fc (patch) | |
tree | cf302b78a2ea2a8554cd5bfcadb20711f4b91460 /protocols/Skype/src/skype_utils.cpp | |
parent | 0b80d7b748a7ded8b0301f4006ba0612c65a6877 (diff) |
fixed notification showing
git-svn-id: http://svn.miranda-ng.org/main/trunk@2010 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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 |