#if wxUSE_NOTIFICATION_MESSAGE && wxUSE_TASKBARICON
+#include "wx/notifmsg.h"
+
#ifndef WX_PRECOMP
+ #include "wx/toplevel.h"
+ #include "wx/app.h"
#include "wx/string.h"
#endif // WX_PRECOMP
-#include "wx/notifmsg.h"
#include "wx/generic/notifmsg.h"
#include "wx/taskbar.h"
m_icon->Connect
(
wxEVT_TASKBAR_BALLOON_CLICK,
- wxTaskBarIconEventHandler(wxNotificationIconEvtHandler::OnTimeout),
+ wxTaskBarIconEventHandler(wxNotificationIconEvtHandler::OnClick),
NULL,
this
);
// wxNotificationMessage
// ----------------------------------------------------------------------------
+/* static */
+bool wxNotificationMessage::ms_alwaysUseGeneric = false;
+
/* static */
wxTaskBarIcon *wxNotificationMessage::UseTaskBarIcon(wxTaskBarIcon *icon)
{
{
if ( !m_impl )
{
- if ( wxTheApp->GetShell32Version() >= 500 )
+ if ( !ms_alwaysUseGeneric && wxTheApp->GetShell32Version() >= 500 )
{
if ( timeout == Timeout_Never )
m_impl = new wxManualNotifMsgImpl(GetParent());