diff --git a/src/msw/notifmsg.cpp b/src/msw/notifmsg.cpp index 000c3aba29..9bced2bbf5 100644 --- a/src/msw/notifmsg.cpp +++ b/src/msw/notifmsg.cpp @@ -341,15 +341,25 @@ bool wxNotificationMessage::MSWUseToasts( const wxString& shortcutPath, const wxString& appId) { +#if wxUSE_WINRT return wxToastNotificationHelper::UseToasts(shortcutPath, appId); +#else + wxUnusedVar(shortcutPath); + wxUnusedVar(appId); + return false; +#endif } void wxNotificationMessage::Init() { +#if wxUSE_WINRT if ( wxToastNotificationHelper::IsEnabled() ) m_impl = wxToastNotificationHelper::CreateInstance(this); else +#endif + { m_impl = new wxBalloonNotifMsgImpl(this); + } } #endif // wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON