Skip to content

Commit

Permalink
[EXPLORER] Do WM_MOUSEACTIVATE.MA_NOACTIVATE on notification area
Browse files Browse the repository at this point in the history
Don't activate taskbar when clicked the notification area.
CORE-10667
  • Loading branch information
katahiromz committed Aug 25, 2022
1 parent 3aa3b3a commit 8344291
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/shell/explorer/trayntfy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ class CTrayNotifyWnd :
return TRUE;
}

LRESULT OnMouseActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
return MA_NOACTIVATE;
}

BOOL GetMinimumSize(IN OUT PSIZE pSize)
{
SIZE szClock = { 0, 0 };
Expand Down Expand Up @@ -345,6 +350,7 @@ class CTrayNotifyWnd :

BEGIN_MSG_MAP(CTrayNotifyWnd)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate)
MESSAGE_HANDLER(WM_THEMECHANGED, OnThemeChanged)
MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground)
MESSAGE_HANDLER(WM_SIZE, OnSize)
Expand Down

0 comments on commit 8344291

Please sign in to comment.