From db84eac7133e2bd6904d6a8156e1c3087a9cf15e Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Wed, 6 Mar 2024 21:52:10 +0000 Subject: [PATCH] Fix build failure on Windows XP. --- src/msw/taskbar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index d9e599b290..7bef15b758 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -248,13 +248,16 @@ wxTaskBarIcon::ShowBalloon(const wxString& title, wxUnusedVar(icon); // It's only unused if not supported actually. +#if _WIN32_WINNT >= 0x0600 if ( icon.IsOk() ) { m_balloonIcon = icon.GetIconFor(m_win); notifyData.hBalloonIcon = GetHiconOf(m_balloonIcon); notifyData.dwInfoFlags |= NIIF_USER | NIIF_LARGE_ICON; } - else if ( flags & wxICON_INFORMATION ) + else +#endif + if ( flags & wxICON_INFORMATION ) notifyData.dwInfoFlags |= NIIF_INFO; else if ( flags & wxICON_WARNING ) notifyData.dwInfoFlags |= NIIF_WARNING;