Fix build failure on Windows XP.
Some checks are pending
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Waiting to run
MSW builds / wxMSW vs2019 DLL Release x64 (push) Waiting to run
MSW builds / wxMSW vs2019 Debug Win32 (push) Waiting to run
MSW builds / msw-msys2-clang (push) Waiting to run
MSW cross-builds / wxMSW 64 bits (push) Waiting to run
MSW cross-builds / wxMSW/Univ (push) Waiting to run
MSW cross-builds / wxMSW 32 bits (push) Waiting to run
Code Checks / Check Spelling (push) Waiting to run
Code Checks / Check Whitespace (push) Waiting to run
Code Checks / Check Mixed EOL (push) Waiting to run
Code Checks / Check C++ Style (push) Waiting to run

This commit is contained in:
Daniel Collins 2024-03-06 21:52:10 +00:00
parent a6f399a67a
commit db84eac713

View file

@ -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;