Commit d2ace6ad authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

Fix regression in some programs due to CLR_DEFAULT fix. Noticed in

control-spy rebar.exe.
parent f40fb64d
......@@ -20,7 +20,7 @@
/*
* Rebar control rev 8b
* Rebar control rev 8c
*
* Copyright 1998, 1999 Eric Kohl
*
......@@ -2140,8 +2140,19 @@ REBAR_InternalEraseBkGnd (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, REC
/* testing only - make background green to see it */
new = RGB(0,128,0);
#endif
old = SetBkColor (hdc, new);
}
else {
/* In the absence of documentation for Rebar vs. CLR_NONE,
* we will use the default BtnFace color. Note documentation
* exists for Listview and Imagelist.
*/
new = infoPtr->clrBtnFace;
#if GLATESTING
/* testing only - make background green to see it */
new = RGB(0,128,0);
#endif
}
old = SetBkColor (hdc, new);
rect = lpBand->rcBand;
TRACE("%s background color=0x%06lx, band (%d,%d)-(%d,%d), clip (%d,%d)-(%d,%d)\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment