From 3a508e605b6f6d4cda750fcd6c2ffbe203474237 Mon Sep 17 00:00:00 2001 From: Divan Burger Date: Mon, 7 Jan 2008 19:16:42 +0200 Subject: [PATCH] comdlg32: Modernize the look of the selected colour box in the colour dialog. --- dlls/comdlg32/colordlg.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/dlls/comdlg32/colordlg.c b/dlls/comdlg32/colordlg.c index b4f3951dfed..74d33572cce 100644 --- a/dlls/comdlg32/colordlg.c +++ b/dlls/comdlg32/colordlg.c @@ -441,16 +441,8 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr ) hBrush = CreateSolidBrush(cr); if (hBrush) { - hBrush = SelectObject(hdc, hBrush) ; - Rectangle(hdc, rect.left, rect.top, rect.right/2, rect.bottom); - DeleteObject ( SelectObject(hdc, hBrush) ) ; - hBrush = CreateSolidBrush( GetNearestColor(hdc, cr) ); - if (hBrush) - { - hBrush = SelectObject(hdc, hBrush) ; - Rectangle(hdc, rect.right/2-1, rect.top, rect.right, rect.bottom); - DeleteObject(SelectObject(hdc, hBrush)) ; - } + FillRect(hdc, &rect, hBrush); + DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT); } ReleaseDC(hwnd, hdc); }