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
390c6dfb
Commit
390c6dfb
authored
Jan 29, 2002
by
Guy Albertelli
Committed by
Alexandre Julliard
Jan 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Text/Bkgnd color fixes.
parent
6d694d8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
rebar.c
dlls/comctl32/rebar.c
+26
-18
No files found.
dlls/comctl32/rebar.c
View file @
390c6dfb
...
...
@@ -569,13 +569,18 @@ REBAR_DrawBand (HDC hdc, REBAR_INFO *infoPtr, REBAR_BAND *lpBand)
/* need to handle CDRF_NEWFONT here */
INT
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
COLORREF
oldcolor
=
CLR_NONE
;
oldcolor
=
SetTextColor
(
hdc
,
(
lpBand
->
clrFore
!=
CLR_NONE
)
?
lpBand
->
clrFore
:
infoPtr
->
clrBtnText
);
COLORREF
new
;
if
(
lpBand
->
clrFore
!=
CLR_NONE
)
{
new
=
(
lpBand
->
clrFore
==
CLR_DEFAULT
)
?
infoPtr
->
clrBtnText
:
lpBand
->
clrFore
;
oldcolor
=
SetTextColor
(
hdc
,
new
);
}
DrawTextW
(
hdc
,
lpBand
->
lpText
,
-
1
,
&
lpBand
->
rcCapText
,
DT_CENTER
|
DT_VCENTER
|
DT_SINGLELINE
);
if
(
oldBkMode
!=
TRANSPARENT
)
SetBkMode
(
hdc
,
oldBkMode
);
SetTextColor
(
hdc
,
oldcolor
);
if
(
lpBand
->
clrFore
!=
CLR_NONE
)
SetTextColor
(
hdc
,
oldcolor
);
SelectObject
(
hdc
,
hOldFont
);
}
...
...
@@ -2078,7 +2083,7 @@ REBAR_InternalEraseBkGnd (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, REC
INT
i
,
oldrow
;
HDC
hdc
=
(
HDC
)
wParam
;
RECT
rect
;
COLORREF
old
,
new
;
COLORREF
old
=
CLR_NONE
,
new
;
oldrow
=
-
1
;
for
(
i
=
0
;
i
<
infoPtr
->
uNumBands
;
i
++
)
{
...
...
@@ -2124,25 +2129,28 @@ REBAR_InternalEraseBkGnd (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, REC
}
/* draw the actual background */
if
(
lpBand
->
clrBack
!=
CLR_NONE
)
new
=
lpBand
->
clrBack
;
else
new
=
infoPtr
->
clrBtnFace
;
rect
=
lpBand
->
rcBand
;
if
(
lpBand
->
clrBack
!=
CLR_NONE
)
{
new
=
(
lpBand
->
clrBack
==
CLR_DEFAULT
)
?
infoPtr
->
clrBtnFace
:
lpBand
->
clrBack
;
#if GLATESTING
/* testing only - make background green to see it */
new
=
RGB
(
0
,
128
,
0
);
/* testing only - make background green to see it */
new
=
RGB
(
0
,
128
,
0
);
#endif
old
=
SetBkColor
(
hdc
,
new
);
old
=
SetBkColor
(
hdc
,
new
);
}
rect
=
lpBand
->
rcBand
;
TRACE
(
"%s background color=0x%06lx, band (%d,%d)-(%d,%d), clip (%d,%d)-(%d,%d)
\n
"
,
(
lpBand
->
clrBack
==
CLR_NONE
)
?
"std"
:
""
,
new
,
(
lpBand
->
clrBack
==
CLR_NONE
)
?
"none"
:
((
lpBand
->
clrBack
==
CLR_DEFAULT
)
?
"dft"
:
""
),
GetBkColor
(
hdc
),
lpBand
->
rcBand
.
left
,
lpBand
->
rcBand
.
top
,
lpBand
->
rcBand
.
right
,
lpBand
->
rcBand
.
bottom
,
clip
->
left
,
clip
->
top
,
clip
->
right
,
clip
->
bottom
);
ExtTextOutA
(
hdc
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
NULL
,
0
,
0
);
SetBkColor
(
hdc
,
old
);
if
(
lpBand
->
clrBack
!=
CLR_NONE
)
SetBkColor
(
hdc
,
old
);
}
return
TRUE
;
}
...
...
@@ -2589,7 +2597,7 @@ REBAR_GetBandInfoA (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
if
(
lprbbi
->
fMask
&
RBBIM_COLORS
)
{
lprbbi
->
clrFore
=
lpBand
->
clrFore
;
lprbbi
->
clrBack
=
lpBand
->
clrBack
;
if
(
lprbbi
->
clrBack
==
CLR_
NONE
)
if
(
lprbbi
->
clrBack
==
CLR_
DEFAULT
)
lprbbi
->
clrBack
=
infoPtr
->
clrBtnFace
;
}
...
...
@@ -2675,7 +2683,7 @@ REBAR_GetBandInfoW (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
if
(
lprbbi
->
fMask
&
RBBIM_COLORS
)
{
lprbbi
->
clrFore
=
lpBand
->
clrFore
;
lprbbi
->
clrBack
=
lpBand
->
clrBack
;
if
(
lprbbi
->
clrBack
==
CLR_
NONE
)
if
(
lprbbi
->
clrBack
==
CLR_
DEFAULT
)
lprbbi
->
clrBack
=
infoPtr
->
clrBtnFace
;
}
...
...
@@ -2773,7 +2781,7 @@ REBAR_GetBkColor (REBAR_INFO *infoPtr)
{
COLORREF
clr
=
infoPtr
->
clrBk
;
if
(
clr
==
CLR_
NONE
)
if
(
clr
==
CLR_
DEFAULT
)
clr
=
infoPtr
->
clrBtnFace
;
TRACE
(
"background color 0x%06lx!
\n
"
,
clr
);
...
...
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