← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2534: missing balloon defs for MinGW

 

------------------------------------------------------------
revno: 2534
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Fri 2011-05-27 13:22:59 +0200
message:
  missing balloon defs for MinGW
modified:
  dwt/include/dwt/GCCHeaders.h
  dwt/src/widgets/Notification.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dwt/include/dwt/GCCHeaders.h'
--- dwt/include/dwt/GCCHeaders.h	2011-03-18 15:07:59 +0000
+++ dwt/include/dwt/GCCHeaders.h	2011-05-27 11:22:59 +0000
@@ -90,7 +90,18 @@
 #endif
 #endif
 
-// Additional (gcc, normally) stuff
+// defs for the notification area & balloons
+#ifndef NIIF_INFO
+#define NIIF_INFO 0x1
+#endif
+#ifndef NIIF_USER
+#define NIIF_USER 0x4
+#endif
+#ifndef NIN_BALLOONUSERCLICK
+#define NIN_BALLOONHIDE (WM_USER + 3)
+#define NIN_BALLOONTIMEOUT (WM_USER + 4)
+#define NIN_BALLOONUSERCLICK (WM_USER + 5)
+#endif
 
 #ifndef SPI_GETUIEFFECTS
 	#define SPI_GETUIEFFECTS 0x103E
@@ -100,7 +111,6 @@
 	#define SPI_SETUIEFFECTS 0x103F
 #endif //! SPI_SETUIEFFECTS
 
-
 #ifndef GCLP_HCURSOR
 	#define GCLP_HCURSOR (-12)
 #endif //! GCLP_HCURSOR

=== modified file 'dwt/src/widgets/Notification.cpp'
--- dwt/src/widgets/Notification.cpp	2011-05-27 11:00:40 +0000
+++ dwt/src/widgets/Notification.cpp	2011-05-27 11:22:59 +0000
@@ -161,13 +161,6 @@
 	return false;
 }
 
-// Mingw headers miss these
-#ifndef NIN_BALLOONUSERCLICK
-#define NIN_BALLOONHIDE (WM_USER + 3)
-#define NIN_BALLOONTIMEOUT (WM_USER + 4)
-#define NIN_BALLOONUSERCLICK (WM_USER + 5)
-#endif
-
 bool Notification::trayHandler(const MSG& msg) {
 	switch(msg.lParam) {
 	case WM_LBUTTONUP: