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
5b0c2889
Commit
5b0c2889
authored
Mar 13, 2014
by
David Quintana
Committed by
Alexandre Julliard
Mar 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix horizontal separators in vertical toolbars.
parent
51c3203e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
toolbar.c
dlls/comctl32/toolbar.c
+6
-3
No files found.
dlls/comctl32/toolbar.c
View file @
5b0c2889
...
@@ -857,8 +857,11 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
...
@@ -857,8 +857,11 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
/* empirical tests show that iBitmap can/will be non-zero */
/* empirical tests show that iBitmap can/will be non-zero */
/* when drawing the vertical bar... */
/* when drawing the vertical bar... */
if
((
dwStyle
&
TBSTYLE_FLAT
)
/* && (btnPtr->iBitmap == 0) */
)
{
if
((
dwStyle
&
TBSTYLE_FLAT
)
/* && (btnPtr->iBitmap == 0) */
)
{
if
(
dwStyle
&
CCS_VERT
)
if
(
dwStyle
&
CCS_VERT
)
{
TOOLBAR_DrawFlatHorizontalSeparator
(
&
rc
,
hdc
,
infoPtr
);
RECT
rcsep
=
rc
;
InflateRect
(
&
rcsep
,
-
infoPtr
->
szPadding
.
cx
,
-
infoPtr
->
szPadding
.
cy
);
TOOLBAR_DrawFlatHorizontalSeparator
(
&
rcsep
,
hdc
,
infoPtr
);
}
else
else
TOOLBAR_DrawFlatSeparator
(
&
rc
,
hdc
,
infoPtr
);
TOOLBAR_DrawFlatSeparator
(
&
rc
,
hdc
,
infoPtr
);
}
}
...
@@ -1676,7 +1679,7 @@ TOOLBAR_LayoutToolbar(TOOLBAR_INFO *infoPtr)
...
@@ -1676,7 +1679,7 @@ TOOLBAR_LayoutToolbar(TOOLBAR_INFO *infoPtr)
if
(
btnPtr
->
fsStyle
&
BTNS_SEP
)
{
if
(
btnPtr
->
fsStyle
&
BTNS_SEP
)
{
if
(
infoPtr
->
dwStyle
&
CCS_VERT
)
{
if
(
infoPtr
->
dwStyle
&
CCS_VERT
)
{
cy
=
(
btnPtr
->
iBitmap
>
0
)
?
btnPtr
->
iBitmap
:
SEPARATOR_WIDTH
;
cy
=
(
btnPtr
->
iBitmap
>
0
)
?
btnPtr
->
iBitmap
:
SEPARATOR_WIDTH
;
cx
=
(
btnPtr
->
cx
>
0
)
?
btnPtr
->
cx
:
infoPtr
->
nWidth
;
cx
=
(
btnPtr
->
cx
>
0
)
?
btnPtr
->
cx
:
infoPtr
->
n
Button
Width
;
}
}
else
else
cx
=
(
btnPtr
->
cx
>
0
)
?
btnPtr
->
cx
:
cx
=
(
btnPtr
->
cx
>
0
)
?
btnPtr
->
cx
:
...
...
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