From 3b06f79ff42f5a4637258b4ec5d776973bc56a63 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 28 Feb 2004 10:57:02 +0000 Subject: [PATCH] another foreground window fix for clicks on notification icons svn path=/branches/lean-explorer/; revision=8435 --- reactos/subsys/system/explorer/taskbar/traynotify.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/explorer/taskbar/traynotify.cpp b/reactos/subsys/system/explorer/taskbar/traynotify.cpp index 4c6adb3deb6..a23323a809d 100644 --- a/reactos/subsys/system/explorer/taskbar/traynotify.cpp +++ b/reactos/subsys/system/explorer/taskbar/traynotify.cpp @@ -185,7 +185,13 @@ LRESULT NotifyArea::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam) // Notify the message if the owner is still alive if (IsWindow(entry._hWnd)) { - if (nmsg == WM_MOUSEMOVE) // avoid to call blocking SendMessage() for merely moving the mouse over icons + if (nmsg == WM_MOUSEMOVE || // avoid to call blocking SendMessage() for merely moving the mouse over icons + nmsg == WM_LBUTTONDOWN || // Some programs need PostMessage() instead of SendMessage(). + nmsg == WM_MBUTTONDOWN || // So call SendMessage() only for BUTTONUP and BLCLK messages +#ifdef WM_XBUTTONDOWN + nmsg == WM_XBUTTONDOWN || +#endif + nmsg == WM_RBUTTONDOWN) PostMessage(entry._hWnd, entry._uCallbackMessage, entry._uID, nmsg); else { // allow SetForegroundWindow() in client process