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
ffba5470
Commit
ffba5470
authored
May 04, 2009
by
Nicolas Le Cam
Committed by
Alexandre Julliard
May 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix scroll tests when theming is disabled.
parent
1cfc88a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
8 deletions
+35
-8
scroll.c
dlls/user32/tests/scroll.c
+35
-8
No files found.
dlls/user32/tests/scroll.c
View file @
ffba5470
...
...
@@ -26,6 +26,7 @@
#include "wine/test.h"
static
HWND
hScroll
,
hMainWnd
;
static
BOOL
bThemeActive
=
FALSE
;
static
LRESULT
CALLBACK
MyWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -277,11 +278,18 @@ todo_wine
/* report the windows style */
winstyle
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
/* WS_VSCROLL added to the window style */
todo_wine
if
(
!
(
style
&
WS_VSCROLL
))
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
(
style
|
WS_VSCROLL
),
"unexpected style change %8lx expected %8lx
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
|
WS_VSCROLL
);
{
if
(
bThemeActive
||
style
!=
WS_HSCROLL
)
todo_wine
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
(
style
|
WS_VSCROLL
),
"unexpected style change %8lx expected %8lx
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
|
WS_VSCROLL
);
else
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
style
,
"unexpected style change %8lx expected %8x
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
);
}
/* do the test again with H and V reversed.
* Start with a clean window */
DestroyWindow
(
hwnd
);
...
...
@@ -308,11 +316,18 @@ todo_wine
/* report the windows style */
winstyle
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
/* WS_HSCROLL added to the window style */
todo_wine
if
(
!
(
style
&
WS_HSCROLL
))
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
(
style
|
WS_HSCROLL
),
"unexpected style change %8lx expected %8lx
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
|
WS_HSCROLL
);
{
if
(
bThemeActive
||
style
!=
WS_VSCROLL
)
todo_wine
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
(
style
|
WS_HSCROLL
),
"unexpected style change %8lx expected %8lx
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
|
WS_HSCROLL
);
else
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
style
,
"unexpected style change %8lx expected %8x
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
);
}
/* Slightly change the test to use SetScrollInfo
* Start with a clean window */
DestroyWindow
(
hwnd
);
...
...
@@ -369,6 +384,8 @@ todo_wine
START_TEST
(
scroll
)
{
WNDCLASSA
wc
;
HMODULE
hUxtheme
;
BOOL
(
WINAPI
*
pIsThemeActive
)(
VOID
);
wc
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wc
.
cbClsExtra
=
0
;
...
...
@@ -396,6 +413,16 @@ START_TEST ( scroll )
scrollbar_test3
();
scrollbar_test4
();
/* Some test results vary depending of theming being active or not */
hUxtheme
=
LoadLibraryA
(
"uxtheme.dll"
);
if
(
hUxtheme
)
{
pIsThemeActive
=
(
void
*
)
GetProcAddress
(
hUxtheme
,
"IsThemeActive"
);
if
(
pIsThemeActive
)
bThemeActive
=
pIsThemeActive
();
FreeLibrary
(
hUxtheme
);
}
scrollbar_test_default
(
0
);
scrollbar_test_default
(
WS_HSCROLL
);
scrollbar_test_default
(
WS_VSCROLL
);
...
...
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