diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-02 11:51:50 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-02 11:51:50 +0000 |
commit | 69eca83a831608c873e4b392a2f20da807346408 (patch) | |
tree | ca8d6b2407959d2473fd97626e30d82fc4647af7 | |
parent | 55a33c37e737d801a28bf7e75f828090ef67b224 (diff) |
Toaster: fix for win8
git-svn-id: http://svn.miranda-ng.org/main/trunk@15148 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Toaster/src/toast_notification.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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));
}
|