X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11a0827d14ad03dbdcff1de1067a8fd440dac330..e65a6cc1ec5537dc7f19f89e10cdfaae54adb264:/src/msw/notifmsg.cpp diff --git a/src/msw/notifmsg.cpp b/src/msw/notifmsg.cpp index 348af4a93f..31a4472be4 100644 --- a/src/msw/notifmsg.cpp +++ b/src/msw/notifmsg.cpp @@ -23,7 +23,10 @@ #pragma hdrstop #endif -#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON +// we can only use the native implementation if we have a working +// wxTaskBarIcon::ShowBalloon() method +#if wxUSE_NOTIFICATION_MESSAGE && \ + wxUSE_TASKBARICON && wxUSE_TASKBARICON_BALLOONS #include "wx/notifmsg.h" @@ -55,7 +58,7 @@ public: virtual bool DoClose() = 0; private: - DECLARE_NO_COPY_CLASS(wxNotifMsgImpl) + wxDECLARE_NO_COPY_CLASS(wxNotifMsgImpl); }; // implementation which is simply a bridge to wxGenericNotificationMessage @@ -181,7 +184,7 @@ private: wxTaskBarIcon * const m_icon; - DECLARE_NO_COPY_CLASS(wxNotificationIconEvtHandler) + wxDECLARE_NO_COPY_CLASS(wxNotificationIconEvtHandler); }; // ============================================================================ @@ -314,7 +317,7 @@ wxManualNotifMsgImpl::~wxManualNotifMsgImpl() bool wxManualNotifMsgImpl::DoShow(const wxString& title, const wxString& message, - int timeout, + int WXUNUSED_UNLESS_DEBUG(timeout), int flags) { wxASSERT_MSG( timeout == wxNotificationMessage::Timeout_Never,