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
e0e2d748
Commit
e0e2d748
authored
Oct 11, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: toolbar: Don't send NM_CUSTOMDRAW for separators.
parent
8304d067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
toolbar.c
dlls/comctl32/toolbar.c
+27
-28
No files found.
dlls/comctl32/toolbar.c
View file @
e0e2d748
...
...
@@ -826,6 +826,33 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
rc
=
btnPtr
->
rect
;
CopyRect
(
&
rcArrow
,
&
rc
);
/* separator - doesn't send NM_CUSTOMDRAW */
if
(
btnPtr
->
fsStyle
&
BTNS_SEP
)
{
if
(
theme
)
{
DrawThemeBackground
(
theme
,
hdc
,
(
dwStyle
&
CCS_VERT
)
?
TP_SEPARATORVERT
:
TP_SEPARATOR
,
0
,
&
rc
,
NULL
);
}
else
/* with the FLAT style, iBitmap is the width and has already */
/* been taken into consideration in calculating the width */
/* so now we need to draw the vertical separator */
/* empirical tests show that iBitmap can/will be non-zero */
/* when drawing the vertical bar... */
if
((
dwStyle
&
TBSTYLE_FLAT
)
/* && (btnPtr->iBitmap == 0) */
)
{
if
(
btnPtr
->
fsStyle
&
BTNS_DROPDOWN
)
TOOLBAR_DrawDDFlatSeparator
(
&
rc
,
hdc
,
btnPtr
,
infoPtr
);
else
TOOLBAR_DrawFlatSeparator
(
&
rc
,
hdc
,
infoPtr
);
}
else
if
(
btnPtr
->
fsStyle
!=
BTNS_SEP
)
{
FIXME
(
"Draw some kind of separator: fsStyle=%x
\n
"
,
btnPtr
->
fsStyle
);
}
return
;
}
/* get a pointer to the text */
lpText
=
TOOLBAR_GetText
(
infoPtr
,
btnPtr
);
...
...
@@ -943,33 +970,6 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
rcText
.
bottom
=
tbcd
.
rcText
.
bottom
+
rc
.
top
;
}
/* separator */
if
(
btnPtr
->
fsStyle
&
BTNS_SEP
)
{
if
(
theme
)
{
DrawThemeBackground
(
theme
,
hdc
,
(
dwStyle
&
CCS_VERT
)
?
TP_SEPARATORVERT
:
TP_SEPARATOR
,
0
,
&
tbcd
.
nmcd
.
rc
,
NULL
);
}
else
/* with the FLAT style, iBitmap is the width and has already */
/* been taken into consideration in calculating the width */
/* so now we need to draw the vertical separator */
/* empirical tests show that iBitmap can/will be non-zero */
/* when drawing the vertical bar... */
if
((
dwStyle
&
TBSTYLE_FLAT
)
/* && (btnPtr->iBitmap == 0) */
)
{
if
(
btnPtr
->
fsStyle
&
BTNS_DROPDOWN
)
TOOLBAR_DrawDDFlatSeparator
(
&
rc
,
hdc
,
btnPtr
,
infoPtr
);
else
TOOLBAR_DrawFlatSeparator
(
&
rc
,
hdc
,
infoPtr
);
}
else
if
(
btnPtr
->
fsStyle
!=
BTNS_SEP
)
{
FIXME
(
"Draw some kind of separator: fsStyle=%x
\n
"
,
btnPtr
->
fsStyle
);
}
goto
FINALNOTIFY
;
}
if
(
!
(
infoPtr
->
dwItemCDFlag
&
TBCDRF_NOOFFSET
)
&&
(
btnPtr
->
fsState
&
(
TBSTATE_PRESSED
|
TBSTATE_CHECKED
)))
OffsetRect
(
&
rcText
,
1
,
1
);
...
...
@@ -1058,7 +1058,6 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
TOOLBAR_DrawArrow
(
hdc
,
rcArrow
.
left
,
rcArrow
.
top
+
(
rcArrow
.
bottom
-
rcArrow
.
top
-
ARROW_HEIGHT
)
/
2
,
comctl32_color
.
clrBtnText
);
}
FINALNOTIFY:
if
(
infoPtr
->
dwItemCustDraw
&
CDRF_NOTIFYPOSTPAINT
)
{
tbcd
.
nmcd
.
dwDrawStage
=
CDDS_ITEMPOSTPAINT
;
...
...
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