From 69eca83a831608c873e4b392a2f20da807346408 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 2 Sep 2015 11:51:50 +0000 Subject: Toaster: fix for win8 git-svn-id: http://svn.miranda-ng.org/main/trunk@15148 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/toast_notification.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/Toaster') diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp index 7128bce13b..aa1f6ee5df 100644 --- a/plugins/Toaster/src/toast_notification.cpp +++ b/plugins/Toaster/src/toast_notification.cpp @@ -30,11 +30,14 @@ HRESULT ToastNotification::CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXml HXML xmlVisualNode = xmlAddChild(xmlToast, L"visual", NULL); HXML xmlBindingNode = xmlAddChild(xmlVisualNode, L"binding", NULL); - xmlAddAttr(xmlBindingNode, L"template", L"ToastGeneric"); + xmlAddAttr(xmlBindingNode, L"template", IsWinVer10Plus() ? L"ToastGeneric" : L"ToastImageAndText02"); if (_imagePath) { HXML xmlImageNode = xmlAddChild(xmlBindingNode, L"image", NULL); - xmlAddAttr(xmlImageNode, L"placement", L"appLogoOverride"); + + if (IsWinVer10Plus()) + xmlAddAttr(xmlImageNode, L"placement", L"appLogoOverride"); + xmlAddAttr(xmlImageNode, L"id", L"1"); xmlAddAttr(xmlImageNode, L"src", CMStringW(FORMAT, L"file:///%s", _imagePath)); } -- cgit v1.2.3