Commit ce527de5 authored by Pascal Lessard's avatar Pascal Lessard Committed by Alexandre Julliard

Implemented the behavior of sending WM_CONTEXTMENU when receiving a

WM_RBUTTONUP.
parent 8eba5c2a
......@@ -1382,7 +1382,22 @@ HEADER_Paint (HWND hwnd, WPARAM wParam)
static LRESULT
HEADER_RButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
return HEADER_SendSimpleNotify (hwnd, NM_RCLICK);
BOOL bRet;
POINT pt;
pt.x = LOWORD(lParam);
pt.y = HIWORD(lParam);
/* Send a Notify message */
bRet = HEADER_SendSimpleNotify (hwnd, NM_RCLICK);
/* Change to screen coordinate for WM_CONTEXTMENU */
ClientToScreen(hwnd, &pt);
/* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
SendMessageA( hwnd, WM_CONTEXTMENU, (WPARAM) hwnd, MAKELPARAM(pt.x, pt.y));
return bRet;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment