Commit c6166259 authored by Alexandre Julliard's avatar Alexandre Julliard

Louis-Philippe Gagnon (of Macadamian Technologies for Corel)

Added event handler for WM_MBUTTONDOWN (sends WM_PASTE message).
parent b70b2670
......@@ -238,6 +238,7 @@ static LRESULT EDIT_WM_KillFocus(WND *wnd, EDITSTATE *es, HWND window_getting_fo
static LRESULT EDIT_WM_LButtonDblClk(WND *wnd, EDITSTATE *es, DWORD keys, INT x, INT y);
static LRESULT EDIT_WM_LButtonDown(WND *wnd, EDITSTATE *es, DWORD keys, INT x, INT y);
static LRESULT EDIT_WM_LButtonUp(WND *wnd, EDITSTATE *es, DWORD keys, INT x, INT y);
static LRESULT EDIT_WM_MButtonDown(WND *wnd);
static LRESULT EDIT_WM_MouseMove(WND *wnd, EDITSTATE *es, DWORD keys, INT x, INT y);
static LRESULT EDIT_WM_NCCreate(WND *wnd, LPCREATESTRUCTA cs);
static void EDIT_WM_Paint(WND *wnd, EDITSTATE *es, WPARAM wParam);
......@@ -805,6 +806,11 @@ LRESULT WINAPI EditWndProc( HWND hwnd, UINT msg,
result = EDIT_WM_LButtonUp(wnd, es, (DWORD)wParam, SLOWORD(lParam), SHIWORD(lParam));
break;
case WM_MBUTTONDOWN:
DPRINTF_EDIT_MSG32("WM_MBUTTONDOWN");
result = EDIT_WM_MButtonDown(wnd);
break;
case WM_MOUSEACTIVATE:
/*
* FIXME: maybe DefWindowProc() screws up, but it seems that
......@@ -3595,6 +3601,18 @@ static LRESULT EDIT_WM_LButtonUp(WND *wnd, EDITSTATE *es, DWORD keys, INT x, INT
/*********************************************************************
*
* WM_MBUTTONDOWN
*
*/
static LRESULT EDIT_WM_MButtonDown(WND *wnd)
{
SendMessageA(wnd->hwndSelf,WM_PASTE,0,0);
return 0;
}
/*********************************************************************
*
* WM_MOUSEMOVE
*
*/
......
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