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
582bdade
Commit
582bdade
authored
Oct 17, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Oct 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Test changes in scrollbar's visibility with redraw disabled.
Test to verify that the scrollbar does need to be shown or hidden while redraw is disabled.
parent
bb4e3866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
editor.c
dlls/riched20/tests/editor.c
+7
-0
No files found.
dlls/riched20/tests/editor.c
View file @
582bdade
...
...
@@ -5592,6 +5592,11 @@ static void test_auto_yscroll(void)
todo_wine
ok
(
pt
.
y
!=
0
,
"Didn't scroll down after replacing text.
\n
"
);
else
ok
(
pt
.
y
!=
0
,
"Didn't scroll down after replacing text.
\n
"
);
ret
=
GetWindowLong
(
hwnd
,
GWL_STYLE
);
if
(
!
redraw
)
todo_wine
ok
(
ret
&
WS_VSCROLL
,
"Scrollbar was not shown yet (style=%x).
\n
"
,
(
UINT
)
ret
);
else
ok
(
ret
&
WS_VSCROLL
,
"Scrollbar was not shown yet (style=%x).
\n
"
,
(
UINT
)
ret
);
SendMessage
(
hwnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
NULL
);
lines
=
SendMessage
(
hwnd
,
EM_GETLINECOUNT
,
0
,
0
);
...
...
@@ -5599,6 +5604,8 @@ static void test_auto_yscroll(void)
ret
=
SendMessage
(
hwnd
,
EM_GETSCROLLPOS
,
0
,
(
LPARAM
)
&
pt
);
ok
(
ret
==
1
,
"EM_GETSCROLLPOS returned %d instead of 1
\n
"
,
ret
);
ok
(
pt
.
y
==
0
,
"y scroll position is %d after clearing text.
\n
"
,
pt
.
y
);
ret
=
GetWindowLong
(
hwnd
,
GWL_STYLE
);
ok
(
!
(
ret
&
WS_VSCROLL
),
"Scrollbar is still shown (style=%x).
\n
"
,
(
UINT
)
ret
);
}
SendMessage
(
hwnd
,
WM_SETREDRAW
,
TRUE
,
0
);
...
...
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