comdlg32: Modernize the look of the selected colour box in the colour dialog.
This commit is contained in:
parent
285c9fc640
commit
3a508e605b
|
@ -441,16 +441,8 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr )
|
||||||
hBrush = CreateSolidBrush(cr);
|
hBrush = CreateSolidBrush(cr);
|
||||||
if (hBrush)
|
if (hBrush)
|
||||||
{
|
{
|
||||||
hBrush = SelectObject(hdc, hBrush) ;
|
FillRect(hdc, &rect, hBrush);
|
||||||
Rectangle(hdc, rect.left, rect.top, rect.right/2, rect.bottom);
|
DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT);
|
||||||
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)) ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
ReleaseDC(hwnd, hdc);
|
ReleaseDC(hwnd, hdc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue