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
9f91254c
Commit
9f91254c
authored
Mar 02, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: 'clip' rect is unused in the WM_ERASEBKGND rebar class handler.
parent
903279ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
21 deletions
+4
-21
rebar.c
dlls/comctl32/rebar.c
+4
-21
No files found.
dlls/comctl32/rebar.c
View file @
9f91254c
...
...
@@ -1847,8 +1847,7 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
return
uChanged
;
}
static
LRESULT
REBAR_InternalEraseBkGnd
(
const
REBAR_INFO
*
infoPtr
,
HDC
hdc
,
const
RECT
*
clip
)
static
LRESULT
REBAR_EraseBkGnd
(
const
REBAR_INFO
*
infoPtr
,
HDC
hdc
)
/* Function: This erases the background rectangle by drawing */
/* each band with its background color (or the default) and */
/* draws each bands right separator if necessary. The row */
...
...
@@ -1951,14 +1950,10 @@ REBAR_InternalEraseBkGnd (const REBAR_INFO *infoPtr, HDC hdc, const RECT *clip)
else
{
old
=
SetBkColor
(
hdc
,
new
);
TRACE
(
"%s background color=0x%06x, band
(%d,%d)-(%d,%d), clip (%d,%d)-(%d,%d)
\n
"
,
TRACE
(
"%s background color=0x%06x, band
%s
\n
"
,
(
lpBand
->
clrBack
==
CLR_NONE
)
?
"none"
:
((
lpBand
->
clrBack
==
CLR_DEFAULT
)
?
"dft"
:
""
),
GetBkColor
(
hdc
),
rcBand
.
left
,
rcBand
.
top
,
rcBand
.
right
,
rcBand
.
bottom
,
clip
->
left
,
clip
->
top
,
clip
->
right
,
clip
->
bottom
);
GetBkColor
(
hdc
),
wine_dbgstr_rect
(
&
rcBand
));
ExtTextOutW
(
hdc
,
0
,
0
,
ETO_OPAQUE
,
&
rcBand
,
NULL
,
0
,
0
);
if
(
lpBand
->
clrBack
!=
CLR_NONE
)
SetBkColor
(
hdc
,
old
);
...
...
@@ -3001,18 +2996,6 @@ REBAR_Destroy (REBAR_INFO *infoPtr)
return
0
;
}
static
LRESULT
REBAR_EraseBkGnd
(
const
REBAR_INFO
*
infoPtr
,
HDC
hdc
)
{
RECT
cliprect
;
if
(
GetClipBox
(
hdc
,
&
cliprect
))
return
REBAR_InternalEraseBkGnd
(
infoPtr
,
hdc
,
&
cliprect
);
return
0
;
}
static
LRESULT
REBAR_GetFont
(
const
REBAR_INFO
*
infoPtr
)
{
...
...
@@ -3455,7 +3438,7 @@ REBAR_Paint (const REBAR_INFO *infoPtr, HDC hdc)
TRACE
(
"painting (%s)
\n
"
,
wine_dbgstr_rect
(
&
ps
.
rcPaint
));
if
(
ps
.
fErase
)
{
/* Erase area of paint if requested */
REBAR_
InternalEraseBkGnd
(
infoPtr
,
hdc
,
&
ps
.
rcPaint
);
REBAR_
EraseBkGnd
(
infoPtr
,
hdc
);
}
REBAR_Refresh
(
infoPtr
,
hdc
);
EndPaint
(
infoPtr
->
hwndSelf
,
&
ps
);
...
...
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