avoid displaying context menu for application button _and_ desktop bar at the same time

svn path=/trunk/; revision=8411
This commit is contained in:
Martin Fuchs 2004-02-26 20:38:32 +00:00
parent 2e8d0a55b2
commit 907d42478e
2 changed files with 8 additions and 2 deletions

View file

@ -31,7 +31,6 @@
Yes, ROS epxlorer doesn't read many settings from the registry currently,
as it doesn't have a way to configure them. (missing configuration dialogs)
- Unterdrücken des Taskbar-Kontext-Menüs über Taskbar Buttons
- Vollbildfenster suchen -> Taskleiste ausblenden
- Fenster-Aktivierung nach Desktop-Umschaltung
- Desktop-Manager: Speicherung der Verteilung von Applikations-Fenstern auf die verschiedenen Desktops; Desktop-Namen

View file

@ -113,6 +113,13 @@ LRESULT TaskBar::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
case WM_TIMER:
Refresh();
return 0;
case WM_CONTEXTMENU: {
Point pt(lparam);
ScreenToClient(_htoolbar, &pt);
if ((HWND)wparam==_htoolbar && SendMessage(_htoolbar, TB_HITTEST, 0, (LPARAM)&pt)>0)
break; // avoid displaying context menu for application button _and_ desktop bar at the same time
goto def;}
/*
//#define PM_SHELLHOOK_NOTIFY (WM_APP+0x10)
@ -130,7 +137,7 @@ LRESULT TaskBar::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
Refresh();
break;}
*/
default:
default: def:
return super::WndProc(nmsg, wparam, lparam);
}