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
37854858
Commit
37854858
authored
Jul 17, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Offset client area when toolbar divider is present.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
659b0d70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
toolbar.c
dlls/comctl32/tests/toolbar.c
+5
-0
toolbar.c
dlls/comctl32/toolbar.c
+3
-3
No files found.
dlls/comctl32/tests/toolbar.c
View file @
37854858
...
...
@@ -1649,6 +1649,11 @@ static void test_sizes(void)
ok
(
rect
.
top
==
0
,
"rect.top = %d
\n
"
,
rect
.
top
);
ok
(
rect
.
bottom
==
26
,
"rect.bottom = %d
\n
"
,
rect
.
bottom
);
rebuild_toolbar_ex
(
&
hToolbar
,
WS_EX_DLGMODALFRAME
);
GetClientRect
(
hToolbar
,
&
rect
);
ok
(
rect
.
top
==
0
,
"rect.top = %d
\n
"
,
rect
.
top
);
ok
(
rect
.
bottom
==
26
,
"rect.bottom = %d
\n
"
,
rect
.
bottom
);
free_tbsize_results
();
DestroyWindow
(
hToolbar
);
}
...
...
dlls/comctl32/toolbar.c
View file @
37854858
...
...
@@ -3104,9 +3104,9 @@ TOOLBAR_AutoSize (TOOLBAR_INFO *infoPtr)
if
(
infoPtr
->
dwStyle
&
CCS_NOPARENTALIGN
)
uPosFlags
|=
SWP_NOMOVE
;
if
(
!
(
infoPtr
->
dwStyle
&
CCS_NODIVIDER
))
c
y
+=
GetSystemMetrics
(
SM_CYEDGE
);
if
(
!
(
infoPtr
->
dwStyle
&
CCS_NO
MOVEY
)
&&
!
(
infoPtr
->
dwStyle
&
CCS_NO
DIVIDER
))
y
+=
GetSystemMetrics
(
SM_CYEDGE
);
x
+=
border
.
left
;
y
+=
border
.
top
;
...
...
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