mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Handle click OnNcLButtonUp instead of OnNcLButtonDown/OnNcLButtonDblClick. CORE-15369
This commit is contained in:
parent
ba2cead8a2
commit
46de3a22ac
1 changed files with 9 additions and 6 deletions
|
@ -2861,9 +2861,6 @@ ChangePos:
|
|||
|
||||
bHandled = FALSE;
|
||||
|
||||
if (CheckShowDesktopButtonClick(lParam, bHandled))
|
||||
return TRUE;
|
||||
|
||||
RECT rcStartBtn;
|
||||
m_StartButton.GetWindowRect(&rcStartBtn);
|
||||
|
||||
|
@ -3038,9 +3035,6 @@ HandleTrayContextMenu:
|
|||
|
||||
LRESULT OnNcLButtonDblClick(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
if (CheckShowDesktopButtonClick(lParam, bHandled))
|
||||
return TRUE;
|
||||
|
||||
/* Let the clock handle the double click */
|
||||
::SendMessageW(m_TrayNotify, uMsg, wParam, lParam);
|
||||
|
||||
|
@ -3049,6 +3043,14 @@ HandleTrayContextMenu:
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
LRESULT OnNcLButtonUp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
if (CheckShowDesktopButtonClick(lParam, bHandled))
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LRESULT OnAppTrayDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
DestroyWindow();
|
||||
|
@ -3423,6 +3425,7 @@ HandleTrayContextMenu:
|
|||
MESSAGE_HANDLER(WM_SYSCHAR, OnSysChar)
|
||||
MESSAGE_HANDLER(WM_NCRBUTTONUP, OnNcRButtonUp)
|
||||
MESSAGE_HANDLER(WM_NCLBUTTONDBLCLK, OnNcLButtonDblClick)
|
||||
MESSAGE_HANDLER(WM_NCLBUTTONUP, OnNcLButtonUp)
|
||||
MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
|
||||
MESSAGE_HANDLER(WM_NCMOUSEMOVE, OnMouseMove)
|
||||
MESSAGE_HANDLER(WM_APP_TRAYDESTROY, OnAppTrayDestroy)
|
||||
|
|
Loading…
Reference in a new issue