From 5ab459e4c73781dc296b15c82e6b3eda0013f857 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Feb 2016 12:55:03 +0100 Subject: [PATCH] Use information icon for notifications created using default ctor The refactoring in https://github.com/wxWidgets/wxWidgets/pull/92 changed the appearance of wxNotificationMessages created using default ctor under MSW: they now had no icon instead of using the default one. Restore the old behaviour for compatibility and also because it's compatible with the notifications created using non-default ctor but without providing an explicit flags parameter value. It is a bit annoying to have to use wxICON_INFORMATION explicitly both here and as the default parameter value in include/wx/notifmsg.h, but not annoying enough to do anything more complicated to solve it. --- src/msw/notifmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/notifmsg.cpp b/src/msw/notifmsg.cpp index 72c415c812..3bbaee98cb 100644 --- a/src/msw/notifmsg.cpp +++ b/src/msw/notifmsg.cpp @@ -55,7 +55,7 @@ public: // by the derived classes. wxBalloonNotifMsgImpl(wxNotificationMessageBase* notification) : wxNotificationMessageImpl(notification), - m_flags(0), + m_flags(wxICON_INFORMATION), m_parent(NULL) {