Don't show Win32 scrollbar popup when the window is right-clicked in the scrollbars area

This commit is contained in:
David Capello 2014-08-07 08:44:30 -03:00
parent 7db6ea53c3
commit 0d2b3d1d68

View File

@ -210,6 +210,10 @@ static LRESULT CALLBACK wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
msg == WM_RBUTTONUP ? Event::RightButton:
msg == WM_MBUTTONUP ? Event::MiddleButton: Event::NoneButton);
queue_event(ev);
// Avoid popup menu for scrollbars
if (msg == WM_RBUTTONUP)
return 0;
break;
}