|
51 | 51 | * - WM_QUERYNEWPALETTE
|
52 | 52 | * - WM_RBUTTONDOWN
|
53 | 53 | * - WM_RBUTTONUP
|
54 |
| - * - WM_SYSCOLORCHANGE |
55 | 54 | * - WM_VKEYTOITEM
|
56 | 55 | * - WM_WININICHANGE
|
57 | 56 | * Notifications:
|
@@ -1524,9 +1523,10 @@ REBAR_SizeToHeight(REBAR_INFO *infoPtr, int height)
|
1524 | 1523 | for (i = prev_visible(infoPtr, infoPtr->uNumBands); i > 0; i = prev_visible(infoPtr, i))
|
1525 | 1524 | {
|
1526 | 1525 | REBAR_BAND *lpBand = REBAR_GetBand(infoPtr, i);
|
1527 |
| - int height = lpBand->rcBand.bottom - lpBand->rcBand.top; |
1528 | 1526 | int cyBreakExtra; /* additional cy for the rebar after a RBBS_BREAK on this band */
|
1529 | 1527 |
|
| 1528 | + height = lpBand->rcBand.bottom - lpBand->rcBand.top; |
| 1529 | + |
1530 | 1530 | if (infoPtr->dwStyle & RBS_VARHEIGHT)
|
1531 | 1531 | cyBreakExtra = lpBand->cyRowSoFar; /* 'height' => 'lpBand->cyRowSoFar' + 'height'*/
|
1532 | 1532 | else
|
@@ -1846,8 +1846,7 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
|
1846 | 1846 | return uChanged;
|
1847 | 1847 | }
|
1848 | 1848 |
|
1849 |
| -static LRESULT |
1850 |
| -REBAR_InternalEraseBkGnd (const REBAR_INFO *infoPtr, HDC hdc, const RECT *clip) |
| 1849 | +static LRESULT REBAR_EraseBkGnd (const REBAR_INFO *infoPtr, HDC hdc) |
1851 | 1850 | /* Function: This erases the background rectangle by drawing */
|
1852 | 1851 | /* each band with its background color (or the default) and */
|
1853 | 1852 | /* draws each bands right separator if necessary. The row */
|
@@ -1950,14 +1949,10 @@ REBAR_InternalEraseBkGnd (const REBAR_INFO *infoPtr, HDC hdc, const RECT *clip)
|
1950 | 1949 | else
|
1951 | 1950 | {
|
1952 | 1951 | old = SetBkColor (hdc, new);
|
1953 |
| - TRACE("%s background color=0x%06x, band (%d,%d)-(%d,%d), clip (%d,%d)-(%d,%d)\n", |
| 1952 | + TRACE("%s background color=0x%06x, band %s\n", |
1954 | 1953 | (lpBand->clrBack == CLR_NONE) ? "none" :
|
1955 | 1954 | ((lpBand->clrBack == CLR_DEFAULT) ? "dft" : ""),
|
1956 |
| - GetBkColor(hdc), |
1957 |
| - rcBand.left,rcBand.top, |
1958 |
| - rcBand.right,rcBand.bottom, |
1959 |
| - clip->left, clip->top, |
1960 |
| - clip->right, clip->bottom); |
| 1955 | + GetBkColor(hdc), wine_dbgstr_rect(&rcBand)); |
1961 | 1956 | ExtTextOutW (hdc, 0, 0, ETO_OPAQUE, &rcBand, NULL, 0, 0);
|
1962 | 1957 | if (lpBand->clrBack != CLR_NONE)
|
1963 | 1958 | SetBkColor (hdc, old);
|
@@ -2120,7 +2115,7 @@ REBAR_HandleUDDrag (REBAR_INFO *infoPtr, const POINT *ptsmove)
|
2120 | 2115 | REBAR_BAND *hitBand, *rowBeginBand;
|
2121 | 2116 |
|
2122 | 2117 | if(infoPtr->uNumBands <= 0)
|
2123 |
| - ERR("There are no bands in this rebar"); |
| 2118 | + ERR("There are no bands in this rebar\n"); |
2124 | 2119 |
|
2125 | 2120 | /* Up/down dragging can only occur when there is more than one
|
2126 | 2121 | * band in the rebar */
|
@@ -2544,10 +2539,8 @@ REBAR_InsertBandT(REBAR_INFO *infoPtr, INT iIndex, const REBARBANDINFOW *lprbbi,
|
2544 | 2539 |
|
2545 | 2540 | /* initialize band */
|
2546 | 2541 | memset(lpBand, 0, sizeof(*lpBand));
|
2547 |
| - lpBand->clrFore = infoPtr->clrText == CLR_NONE ? infoPtr->clrBtnText : |
2548 |
| - infoPtr->clrText; |
2549 |
| - lpBand->clrBack = infoPtr->clrBk == CLR_NONE ? infoPtr->clrBtnFace : |
2550 |
| - infoPtr->clrBk; |
| 2542 | + lpBand->clrFore = infoPtr->clrText; |
| 2543 | + lpBand->clrBack = infoPtr->clrBk; |
2551 | 2544 | lpBand->iImage = -1;
|
2552 | 2545 |
|
2553 | 2546 | REBAR_CommonSetupBand(infoPtr->hwndSelf, lprbbi, lpBand);
|
@@ -3000,18 +2993,6 @@ REBAR_Destroy (REBAR_INFO *infoPtr)
|
3000 | 2993 | return 0;
|
3001 | 2994 | }
|
3002 | 2995 |
|
3003 |
| - |
3004 |
| -static LRESULT |
3005 |
| -REBAR_EraseBkGnd (const REBAR_INFO *infoPtr, HDC hdc) |
3006 |
| -{ |
3007 |
| - RECT cliprect; |
3008 |
| - |
3009 |
| - if (GetClipBox ( hdc, &cliprect)) |
3010 |
| - return REBAR_InternalEraseBkGnd (infoPtr, hdc, &cliprect); |
3011 |
| - return 0; |
3012 |
| -} |
3013 |
| - |
3014 |
| - |
3015 | 2996 | static LRESULT
|
3016 | 2997 | REBAR_GetFont (const REBAR_INFO *infoPtr)
|
3017 | 2998 | {
|
@@ -3454,7 +3435,7 @@ REBAR_Paint (const REBAR_INFO *infoPtr, HDC hdc)
|
3454 | 3435 | TRACE("painting (%s)\n", wine_dbgstr_rect(&ps.rcPaint));
|
3455 | 3436 | if (ps.fErase) {
|
3456 | 3437 | /* Erase area of paint if requested */
|
3457 |
| - REBAR_InternalEraseBkGnd (infoPtr, hdc, &ps.rcPaint); |
| 3438 | + REBAR_EraseBkGnd (infoPtr, hdc); |
3458 | 3439 | }
|
3459 | 3440 | REBAR_Refresh (infoPtr, hdc);
|
3460 | 3441 | EndPaint (infoPtr->hwndSelf, &ps);
|
@@ -3809,6 +3790,8 @@ REBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
3809 | 3790 |
|
3810 | 3791 | case WM_SYSCOLORCHANGE:
|
3811 | 3792 | COMCTL32_RefreshSysColors();
|
| 3793 | + infoPtr->clrBtnText = comctl32_color.clrBtnText; |
| 3794 | + infoPtr->clrBtnFace = comctl32_color.clrBtnFace; |
3812 | 3795 | return 0;
|
3813 | 3796 |
|
3814 | 3797 | /* case WM_VKEYTOITEM: supported according to ControlSpy */
|
|
0 commit comments