Commit a4ff5c55 authored by Ivan Sinitsin's avatar Ivan Sinitsin Committed by Alexandre Julliard

comdlg32: Set the right background color of the dialog window "Choose color".

parent a00af0d2
...@@ -463,6 +463,7 @@ void CC_PaintTriangle( HWND hDlg, int y) ...@@ -463,6 +463,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
int height; int height;
int oben; int oben;
RECT rect; RECT rect;
HBRUSH hbr;
HWND hwnd = GetDlgItem(hDlg, 0x2be); HWND hwnd = GetDlgItem(hDlg, 0x2be);
LCCPRIV lpp = (LCCPRIV) GetPropW( hDlg, szColourDialogProp ); LCCPRIV lpp = (LCCPRIV) GetPropW( hDlg, szColourDialogProp );
...@@ -483,7 +484,9 @@ void CC_PaintTriangle( HWND hDlg, int y) ...@@ -483,7 +484,9 @@ void CC_PaintTriangle( HWND hDlg, int y)
points[2].y = points[0].y - w; points[2].y = points[0].y - w;
points[2].x = points[1].x = points[0].x + w; points[2].x = points[1].x = points[0].x + w;
FillRect(hDC, &lpp->old3angle, (HBRUSH)GetClassLongPtrW( hwnd, GCLP_HBRBACKGROUND)); hbr = (HBRUSH)GetClassLongPtrW( hwnd, GCLP_HBRBACKGROUND);
if (!hbr) hbr = GetSysColorBrush(COLOR_BTNFACE);
FillRect(hDC, &lpp->old3angle, hbr);
lpp->old3angle.left = points[0].x; lpp->old3angle.left = points[0].x;
lpp->old3angle.right = points[1].x + 1; lpp->old3angle.right = points[1].x + 1;
lpp->old3angle.top = points[2].y - 1; lpp->old3angle.top = points[2].y - 1;
...@@ -740,7 +743,9 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols) ...@@ -740,7 +743,9 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
hdc = GetDC(hwnd); hdc = GetDC(hwnd);
GetClientRect(hwnd, &rect); GetClientRect(hwnd, &rect);
FillRect(hdc, &rect, (HBRUSH)GetClassLongPtrW(hwnd, GCLP_HBRBACKGROUND)); hBrush = (HBRUSH)GetClassLongPtrW( hwnd, GCLP_HBRBACKGROUND);
if (!hBrush) hBrush = GetSysColorBrush(COLOR_BTNFACE);
FillRect(hdc, &rect, hBrush);
for ( j = 0; j < rows; j++ ) for ( j = 0; j < rows; j++ )
{ {
for ( i = 0; i < cols; i++ ) for ( i = 0; i < cols; i++ )
...@@ -784,7 +789,9 @@ void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpcr ) ...@@ -784,7 +789,9 @@ void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpcr )
hdc = GetDC(hwnd); hdc = GetDC(hwnd);
if (hdc) if (hdc)
{ {
FillRect(hdc, &rect, (HBRUSH)GetClassLongPtrW(hwnd, GCLP_HBRBACKGROUND) ); hBrush = (HBRUSH)GetClassLongPtrW( hwnd, GCLP_HBRBACKGROUND);
if (!hBrush) hBrush = GetSysColorBrush(COLOR_BTNFACE);
FillRect( hdc, &rect, hBrush );
for (j = 0; j < rows; j++) for (j = 0; j < rows; j++)
{ {
for (i = 0; i < cols; i++) for (i = 0; i < cols; i++)
......
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