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
6af1df86
Commit
6af1df86
authored
Dec 15, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add 16-bit translation for parameters of the WM_H/VSCROLL edit messages.
parent
8649f730
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
edit.c
dlls/user32/edit.c
+5
-10
msg16.c
dlls/user32/msg16.c
+5
-0
No files found.
dlls/user32/edit.c
View file @
6af1df86
...
...
@@ -51,11 +51,8 @@
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "wownt32.h"
#include "win.h"
#include "imm.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/unicode.h"
#include "controls.h"
#include "user_private.h"
...
...
@@ -3918,7 +3915,6 @@ static LRESULT EDIT_WM_HScroll(EDITSTATE *es, INT action, INT pos)
* although it's also a regular control message.
*/
case
EM_GETTHUMB
:
/* this one is used by NT notepad */
case
EM_GETTHUMB16
:
{
LRESULT
ret
;
if
(
GetWindowLongW
(
es
->
hwndSelf
,
GWL_STYLE
)
&
WS_HSCROLL
)
...
...
@@ -3932,7 +3928,7 @@ static LRESULT EDIT_WM_HScroll(EDITSTATE *es, INT action, INT pos)
TRACE
(
"EM_GETTHUMB: returning %ld
\n
"
,
ret
);
return
ret
;
}
case
EM_LINESCROLL
16
:
case
EM_LINESCROLL
:
TRACE
(
"EM_LINESCROLL16
\n
"
);
dx
=
pos
;
break
;
...
...
@@ -4042,7 +4038,6 @@ static LRESULT EDIT_WM_VScroll(EDITSTATE *es, INT action, INT pos)
* although it's also a regular control message.
*/
case
EM_GETTHUMB
:
/* this one is used by NT notepad */
case
EM_GETTHUMB16
:
{
LRESULT
ret
;
if
(
GetWindowLongW
(
es
->
hwndSelf
,
GWL_STYLE
)
&
WS_VSCROLL
)
...
...
@@ -4056,8 +4051,8 @@ static LRESULT EDIT_WM_VScroll(EDITSTATE *es, INT action, INT pos)
TRACE
(
"EM_GETTHUMB: returning %ld
\n
"
,
ret
);
return
ret
;
}
case
EM_LINESCROLL
16
:
TRACE
(
"EM_LINESCROLL
16
%d
\n
"
,
pos
);
case
EM_LINESCROLL
:
TRACE
(
"EM_LINESCROLL %d
\n
"
,
pos
);
dy
=
pos
;
break
;
...
...
@@ -4083,8 +4078,8 @@ static LRESULT EDIT_WM_VScroll(EDITSTATE *es, INT action, INT pos)
*/
static
LRESULT
EDIT_EM_GetThumb
(
EDITSTATE
*
es
)
{
return
MAKELONG
(
EDIT_WM_VScroll
(
es
,
EM_GETTHUMB
16
,
0
),
EDIT_WM_HScroll
(
es
,
EM_GETTHUMB16
,
0
));
return
MAKELONG
(
EDIT_WM_VScroll
(
es
,
EM_GETTHUMB
,
0
),
EDIT_WM_HScroll
(
es
,
EM_GETTHUMB
,
0
));
}
...
...
dlls/user32/msg16.c
View file @
6af1df86
...
...
@@ -1038,6 +1038,11 @@ static LRESULT edit_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
case
WM_NCDESTROY
:
edit_destroy_handle
(
hwnd
);
return
wow_handlers32
.
edit_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
unicode
);
/* no unlock on destroy */
case
WM_HSCROLL
:
case
WM_VSCROLL
:
if
(
LOWORD
(
wParam
)
==
EM_GETTHUMB16
||
LOWORD
(
wParam
)
==
EM_LINESCROLL16
)
wParam
-=
msg16_offset
;
result
=
wow_handlers32
.
edit_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
unicode
);
break
;
default:
result
=
wow_handlers32
.
edit_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
unicode
);
break
;
...
...
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