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
032356ec
Commit
032356ec
authored
Mar 04, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Disable scroll bar control window when both buttons disabled.
parent
598e6f09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
scroll.c
dlls/user32/scroll.c
+3
-0
scroll.c
dlls/user32/tests/scroll.c
+15
-4
No files found.
dlls/user32/scroll.c
View file @
032356ec
...
...
@@ -2069,6 +2069,9 @@ BOOL WINAPI EnableScrollBar( HWND hwnd, UINT nBar, UINT flags )
if
(
bFineWithMe
&&
infoPtr
->
flags
==
flags
)
return
FALSE
;
infoPtr
->
flags
=
flags
;
if
(
nBar
==
SB_CTL
&&
(
flags
==
ESB_DISABLE_BOTH
||
flags
==
ESB_ENABLE_BOTH
))
EnableWindow
(
hwnd
,
flags
==
ESB_ENABLE_BOTH
);
SCROLL_RefreshScrollBar
(
hwnd
,
nBar
,
TRUE
,
TRUE
);
return
TRUE
;
}
dlls/user32/tests/scroll.c
View file @
032356ec
...
...
@@ -54,15 +54,26 @@ static void scrollbar_test1(void)
ret
=
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_DISABLE_BOTH
);
ok
(
ret
,
"The scrollbar should be disabled.
\n
"
);
todo_wine
{
ok
(
!
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be disabled.
\n
"
);
}
ok
(
!
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be disabled.
\n
"
);
ret
=
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_ENABLE_BOTH
);
ok
(
ret
,
"The scrollbar should be enabled.
\n
"
);
ok
(
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be enabled.
\n
"
);
/* test buttons separately */
ret
=
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_DISABLE_LTUP
);
ok
(
ret
,
"The scrollbar LTUP button should be disabled.
\n
"
);
ok
(
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be enabled.
\n
"
);
ret
=
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_ENABLE_BOTH
);
ok
(
ret
,
"The scrollbar should be enabled.
\n
"
);
ok
(
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be enabled.
\n
"
);
ret
=
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_DISABLE_RTDN
);
ok
(
ret
,
"The scrollbar RTDN button should be disabled.
\n
"
);
ok
(
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be enabled.
\n
"
);
ret
=
EnableScrollBar
(
hScroll
,
SB_CTL
,
ESB_ENABLE_BOTH
);
ok
(
ret
,
"The scrollbar should be enabled.
\n
"
);
ok
(
IsWindowEnabled
(
hScroll
),
"The scrollbar window should be enabled.
\n
"
);
}
static
void
scrollbar_test2
(
void
)
...
...
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