Louis-Philippe Gagnon (of Macadamian Technologies for Corel)
Added event handler for WM_MBUTTONDOWN (sends WM_PASTE message).
This commit is contained in:
parent
b70b26709f
commit
c616625945
|
@ -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
|
||||
|
@ -3593,6 +3599,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
|
||||
|
|
Loading…
Reference in New Issue