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
119d97e8
Commit
119d97e8
authored
Nov 22, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Some tests for SetScrollInfo().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dcbd4a00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
scroll.c
dlls/user32/tests/scroll.c
+44
-0
No files found.
dlls/user32/tests/scroll.c
View file @
119d97e8
...
...
@@ -525,6 +525,49 @@ static void scrollbar_test_init(void)
UnregisterClassA
(
cls_name
,
wc
.
hInstance
);
}
static
void
test_SetScrollInfo
(
void
)
{
SCROLLINFO
si
;
HWND
mainwnd
;
BOOL
ret
;
mainwnd
=
create_main_test_wnd
();
ret
=
IsWindowEnabled
(
hScroll
);
ok
(
ret
,
"scroll bar disabled
\n
"
);
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_DISABLE_BOTH
);
ret
=
IsWindowEnabled
(
hScroll
);
ok
(
!
ret
,
"scroll bar disabled
\n
"
);
memset
(
&
si
,
0
,
sizeof
(
si
));
si
.
cbSize
=
sizeof
(
si
);
si
.
fMask
=
0xf
;
ret
=
GetScrollInfo
(
hScroll
,
SB_CTL
,
&
si
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
/* SetScrollInfo */
memset
(
&
si
,
0
,
sizeof
(
si
));
si
.
cbSize
=
sizeof
(
si
);
ret
=
IsWindowEnabled
(
hScroll
);
ok
(
!
ret
,
"scroll bar disabled
\n
"
);
si
.
fMask
=
SIF_POS
|
SIF_RANGE
|
SIF_PAGE
|
SIF_DISABLENOSCROLL
;
si
.
nMax
=
100
;
si
.
nPos
=
0
;
si
.
nPage
=
100
;
SetScrollInfo
(
hScroll
,
SB_CTL
,
&
si
,
TRUE
);
ret
=
IsWindowEnabled
(
hScroll
);
ok
(
!
ret
,
"scroll bar enabled
\n
"
);
si
.
fMask
=
0xf
;
ret
=
GetScrollInfo
(
hScroll
,
SB_CTL
,
&
si
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
DestroyWindow
(
hScroll
);
DestroyWindow
(
mainwnd
);
}
START_TEST
(
scroll
)
{
WNDCLASSA
wc
;
...
...
@@ -548,6 +591,7 @@ START_TEST ( scroll )
test_ShowScrollBar
();
test_GetScrollBarInfo
();
scrollbar_test_track
();
test_SetScrollInfo
();
/* Some test results vary depending of theming being active or not */
hUxtheme
=
LoadLibraryA
(
"uxtheme.dll"
);
...
...
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