mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
avoid displaying context menu for application button _and_ desktop bar at the same time
svn path=/trunk/; revision=8411
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user