Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c6166259
Commit
c6166259
authored
May 25, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Louis-Philippe Gagnon (of Macadamian Technologies for Corel)
Added event handler for WM_MBUTTONDOWN (sends WM_PASTE message).
parent
b70b2670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
edit.c
controls/edit.c
+18
-0
No files found.
controls/edit.c
View file @
c6166259
...
...
@@ -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
*
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment