[EXPLORER] Do WM_MOUSEACTIVATE.MA_NOACTIVATE on notification area

Don't activate taskbar when clicked the notification area.
CORE-10667
This commit is contained in:
Katayama Hirofumi MZ 2022-08-26 08:07:54 +09:00
parent 3aa3b3af56
commit 83442919e4

View file

@ -124,6 +124,11 @@ public:
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 };
@ -345,6 +350,7 @@ public:
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)