Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
2be56fdc
Commit
2be56fdc
authored
Oct 06, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Oct 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Ignore lParam argument of WM_SIZE message for edit control.
Signed-off-by:
Michael Müller
<
michael@fds-team.de
>
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
parent
e4a3cd60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
edit.c
dlls/user32/edit.c
+3
-4
edit.c
dlls/user32/tests/edit.c
+4
-4
No files found.
dlls/user32/edit.c
View file @
2be56fdc
...
...
@@ -3923,12 +3923,11 @@ static void EDIT_WM_SetText(EDITSTATE *es, LPCWSTR text, BOOL unicode)
* WM_SIZE
*
*/
static
void
EDIT_WM_Size
(
EDITSTATE
*
es
,
UINT
action
,
INT
width
,
INT
height
)
static
void
EDIT_WM_Size
(
EDITSTATE
*
es
,
UINT
action
)
{
if
((
action
==
SIZE_MAXIMIZED
)
||
(
action
==
SIZE_RESTORED
))
{
RECT
rc
;
TRACE
(
"width = %d, height = %d
\n
"
,
width
,
height
);
SetRect
(
&
rc
,
0
,
0
,
width
,
height
);
GetClientRect
(
es
->
hwndSelf
,
&
rc
);
EDIT_SetRectNP
(
es
,
&
rc
);
EDIT_UpdateText
(
es
,
NULL
,
TRUE
);
}
...
...
@@ -5096,7 +5095,7 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
break
;
case
WM_SIZE
:
EDIT_WM_Size
(
es
,
(
UINT
)
wParam
,
LOWORD
(
lParam
),
HIWORD
(
lParam
)
);
EDIT_WM_Size
(
es
,
(
UINT
)
wParam
);
break
;
case
WM_STYLECHANGED
:
...
...
dlls/user32/tests/edit.c
View file @
2be56fdc
...
...
@@ -1483,16 +1483,16 @@ static void test_margins(void)
SendMessageA
(
hwEdit
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
old_rect
);
SendMessageA
(
hwEdit
,
WM_SIZE
,
SIZE_RESTORED
,
0
);
SendMessageA
(
hwEdit
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
new_rect
);
todo_wine
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
SendMessageA
(
hwEdit
,
WM_SIZE
,
SIZE_MINIMIZED
,
0
);
SendMessageA
(
hwEdit
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
new_rect
);
todo_wine
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
SendMessageA
(
hwEdit
,
WM_SIZE
,
SIZE_MAXIMIZED
,
0
);
SendMessageA
(
hwEdit
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
new_rect
);
todo_wine
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
SendMessageA
(
hwEdit
,
WM_SIZE
,
SIZE_RESTORED
,
MAKELONG
(
10
,
10
));
SendMessageA
(
hwEdit
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
new_rect
);
todo_wine
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
ok
(
EqualRect
(
&
old_rect
,
&
new_rect
),
"The border of the rectangle has changed
\n
"
);
DestroyWindow
(
hwEdit
);
...
...
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