Signed-off-by: Vijay Kiran Kamuju infyquest@gmail.com --- include/Makefile.in | 1 + include/colordlg.h | 62 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 include/colordlg.h
diff --git a/include/Makefile.in b/include/Makefile.in index c31fb50d7498..421e3d6c5988 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -60,6 +60,7 @@ SOURCES = \ cmdtxt.idl \ cmnquery.idl \ colinf.idl \ + colordlg.h \ comcat.idl \ commctrl.h \ commctrl.rh \ diff --git a/include/colordlg.h b/include/colordlg.h new file mode 100644 index 000000000000..330659f7a435 --- /dev/null +++ b/include/colordlg.h @@ -0,0 +1,62 @@ +/* + * Color Dialog definitions + * + * Copyright (C) 2019 Vijay Kiran Kamuju + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __WINE_COLORDLG_H +#define __WINE_COLORDLG_H + +#define DLG_COLOR + +#define COLOR_HUESCROLL 700 +#define COLOR_SATSCROLL 701 +#define COLOR_LUMSCROLL 702 +#define COLOR_HUE 703 +#define COLOR_SAT 704 +#define COLOR_LUM 705 +#define COLOR_RED 706 +#define COLOR_GREEN 707 +#define COLOR_BLUE 708 +#define COLOR_CURRENT 709 +#define COLOR_RAINBOW 710 +#define COLOR_SAVE 711 +#define COLOR_ADD 712 +#define COLOR_SOLID 713 +#define COLOR_TUNE 714 +#define COLOR_SCHEMES 715 +#define COLOR_ELEMENT 716 +#define COLOR_SAMPLES 717 +#define COLOR_PALETTE 718 +#define COLOR_MIX 719 +#define COLOR_BOX1 720 +#define COLOR_CUSTOM1 721 + +#define COLOR_HUEACCEL 723 +#define COLOR_SATACCEL 724 +#define COLOR_LUMACCEL 725 +#define COLOR_REDACCEL 726 +#define COLOR_GREENACCEL 727 +#define COLOR_BLUEACCEL 728 + +#define COLOR_SOLID_LEFT 730 +#define COLOR_SOLID_RIGHT 731 + +#define NUM_BASIC_COLORS 48 +#define NUM_CUSTOM_COLORS 16 + +#endif /* __WINE_COLORDLG_H */
Signed-off-by: Vijay Kiran Kamuju infyquest@gmail.com --- dlls/comdlg32/cdlg.h | 22 ------ dlls/comdlg32/colordlg.c | 137 +++++++++++++++++++------------------- dlls/comdlg32/comdlg32.rc | 46 +++++++------ 3 files changed, 93 insertions(+), 112 deletions(-)
diff --git a/dlls/comdlg32/cdlg.h b/dlls/comdlg32/cdlg.h index 28bb7e75268c..1ddd157b880d 100644 --- a/dlls/comdlg32/cdlg.h +++ b/dlls/comdlg32/cdlg.h @@ -148,28 +148,6 @@ typedef struct { #define IDS_COLOR_AQUA 1054 #define IDS_COLOR_WHITE 1055
-/* Color dialog controls */ -#define IDC_COLOR_LUMBAR 702 -#define IDC_COLOR_EDIT_H 703 -#define IDC_COLOR_EDIT_S 704 -#define IDC_COLOR_EDIT_L 705 -#define IDC_COLOR_EDIT_R 706 -#define IDC_COLOR_EDIT_G 707 -#define IDC_COLOR_EDIT_B 708 -#define IDC_COLOR_RESULT 709 -#define IDC_COLOR_GRAPH 710 -#define IDC_COLOR_ADD 712 -#define IDC_COLOR_RES 713 -#define IDC_COLOR_DEFINE 719 -#define IDC_COLOR_PREDEF 720 -#define IDC_COLOR_USRDEF 721 -#define IDC_COLOR_HL 723 -#define IDC_COLOR_SL 724 -#define IDC_COLOR_LL 725 -#define IDC_COLOR_RL 726 -#define IDC_COLOR_GL 727 -#define IDC_COLOR_BL 728 - #define IDS_FONT_SIZE 1200 #define IDS_SAVE_BUTTON 1201 #define IDS_SAVE_IN 1202 diff --git a/dlls/comdlg32/colordlg.c b/dlls/comdlg32/colordlg.c index 1e8c26bf3244..43bce0a3a5da 100644 --- a/dlls/comdlg32/colordlg.c +++ b/dlls/comdlg32/colordlg.c @@ -3,6 +3,7 @@ * * Copyright 1994 Martin Ayotte * Copyright 1996 Albrecht Kleine + * Copyright 2019 Vijay Kiran Kamuju * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -269,7 +270,7 @@ static BOOL CC_MouseCheckPredefColorArray(CCPRIV *lpp, int rows, int cols, LPARA
CONV_LPARAMTOPOINT(lParam, &point); ClientToScreen(lpp->hwndSelf, &point); - hwnd = GetDlgItem(lpp->hwndSelf, IDC_COLOR_PREDEF); + hwnd = GetDlgItem(lpp->hwndSelf, COLOR_BOX1); GetWindowRect(hwnd, &rect); if (PtInRect(&rect, point)) { @@ -303,7 +304,7 @@ static BOOL CC_MouseCheckUserColorArray(CCPRIV *lpp, int rows, int cols, LPARAM
CONV_LPARAMTOPOINT(lParam, &point); ClientToScreen(lpp->hwndSelf, &point); - hwnd = GetDlgItem(lpp->hwndSelf, IDC_COLOR_USRDEF); + hwnd = GetDlgItem(lpp->hwndSelf, COLOR_CUSTOM1); GetWindowRect(hwnd, &rect); if (PtInRect(&rect, point)) { @@ -383,11 +384,11 @@ static BOOL CC_MouseCheckResultWindow( HWND hDlg, LPARAM lParam )
CONV_LPARAMTOPOINT(lParam, &point); ClientToScreen(hDlg, &point); - hwnd = GetDlgItem(hDlg, IDC_COLOR_RESULT); + hwnd = GetDlgItem(hDlg, COLOR_SOLIDULT); GetWindowRect(hwnd, &rect); if (PtInRect(&rect, point)) { - PostMessageA(hDlg, WM_COMMAND, IDC_COLOR_RES, 0); + PostMessageA(hDlg, WM_COMMAND, COLOR_SOLID, 0); return TRUE; } return FALSE; @@ -440,12 +441,12 @@ static int CC_CheckDigitsInEdit( HWND hwnd, int maxval ) */ static void CC_PaintSelectedColor(const CCPRIV *infoPtr) { - if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH) )) /* if full size */ + if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW) )) /* if full size */ { RECT rect; HDC hdc; HBRUSH hBrush; - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_RESULT); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_SOLIDULT);
hdc = GetDC(hwnd); GetClientRect(hwnd, &rect) ; @@ -473,9 +474,9 @@ static void CC_PaintTriangle(CCPRIV *infoPtr) int oben; RECT rect; HBRUSH hbr; - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_LUMBAR); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_LUMSCROLL);
- if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH))) /* if full size */ + if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW))) /* if full size */ { GetClientRect(hwnd, &rect); height = rect.bottom; @@ -515,7 +516,7 @@ static void CC_PaintTriangle(CCPRIV *infoPtr) */ static void CC_PaintCross(CCPRIV *infoPtr) { - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW);
if (IsWindowVisible(hwnd)) /* if full size */ { @@ -573,7 +574,7 @@ static void CC_PaintCross(CCPRIV *infoPtr) static void CC_PrepareColorGraph(CCPRIV *infoPtr) { int sdif, hdif, xdif, ydif, hue, sat; - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW); HBRUSH hbrush; HDC hdc ; RECT rect, client; @@ -612,7 +613,7 @@ static void CC_PrepareColorGraph(CCPRIV *infoPtr) */ static void CC_PaintColorGraph(CCPRIV *infoPtr) { - HWND hwnd = GetDlgItem( infoPtr->hwndSelf, IDC_COLOR_GRAPH ); + HWND hwnd = GetDlgItem( infoPtr->hwndSelf, COLOR_RAINBOW ); HDC hDC; RECT rect;
@@ -636,7 +637,7 @@ static void CC_PaintColorGraph(CCPRIV *infoPtr) */ static void CC_PaintLumBar(const CCPRIV *infoPtr) { - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_LUMBAR); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_LUMSCROLL); RECT rect, client; int lum, ldif, ydif; HBRUSH hbrush; @@ -669,7 +670,7 @@ static void CC_PaintLumBar(const CCPRIV *infoPtr) */ static void CC_EditSetRGB( CCPRIV *infoPtr ) { - if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH) )) /* if full size */ + if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW) )) /* if full size */ { COLORREF cr = infoPtr->lpcc->rgbResult; int r = GetRValue(cr); @@ -677,9 +678,9 @@ static void CC_EditSetRGB( CCPRIV *infoPtr ) int b = GetBValue(cr);
infoPtr->updating = TRUE; - SetDlgItemInt(infoPtr->hwndSelf, IDC_COLOR_EDIT_R, r, TRUE); - SetDlgItemInt(infoPtr->hwndSelf, IDC_COLOR_EDIT_G, g, TRUE); - SetDlgItemInt(infoPtr->hwndSelf, IDC_COLOR_EDIT_B, b, TRUE); + SetDlgItemInt(infoPtr->hwndSelf, COLOR_RED, r, TRUE); + SetDlgItemInt(infoPtr->hwndSelf, COLOR_GREEN, g, TRUE); + SetDlgItemInt(infoPtr->hwndSelf, COLOR_BLUE, b, TRUE); infoPtr->updating = FALSE; } } @@ -689,12 +690,12 @@ static void CC_EditSetRGB( CCPRIV *infoPtr ) */ static void CC_EditSetHSL( CCPRIV *infoPtr ) { - if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH) )) /* if full size */ + if (IsWindowVisible( GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW) )) /* if full size */ { infoPtr->updating = TRUE; - SetDlgItemInt(infoPtr->hwndSelf, IDC_COLOR_EDIT_H, infoPtr->h, TRUE); - SetDlgItemInt(infoPtr->hwndSelf, IDC_COLOR_EDIT_S, infoPtr->s, TRUE); - SetDlgItemInt(infoPtr->hwndSelf, IDC_COLOR_EDIT_L, infoPtr->l, TRUE); + SetDlgItemInt(infoPtr->hwndSelf, COLOR_HUE, infoPtr->h, TRUE); + SetDlgItemInt(infoPtr->hwndSelf, COLOR_SAT, infoPtr->s, TRUE); + SetDlgItemInt(infoPtr->hwndSelf, COLOR_LUM, infoPtr->l, TRUE); infoPtr->updating = FALSE; } CC_PaintLumBar(infoPtr); @@ -707,27 +708,27 @@ static void CC_SwitchToFullSize( CCPRIV *infoPtr, const RECT *lprect ) { int i;
- EnableWindow( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_DEFINE), FALSE); + EnableWindow( GetDlgItem(infoPtr->hwndSelf, COLOR_MIX), FALSE); CC_PrepareColorGraph(infoPtr); - for (i = IDC_COLOR_EDIT_H; i <= IDC_COLOR_EDIT_B; i++) + for (i = COLOR_HUE; i <= COLOR_BLUE; i++) ShowWindow( GetDlgItem(infoPtr->hwndSelf, i), SW_SHOW); - for (i = IDC_COLOR_HL; i <= IDC_COLOR_BL; i++) + for (i = COLOR_HUE_ACCEL; i <= COLOR_BLUE_ACCEL; i++) ShowWindow( GetDlgItem(infoPtr->hwndSelf, i), SW_SHOW); - ShowWindow( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_RES), SW_SHOW); - ShowWindow( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_ADD), SW_SHOW); + ShowWindow( GetDlgItem(infoPtr->hwndSelf, COLOR_SOLID), SW_SHOW); + ShowWindow( GetDlgItem(infoPtr->hwndSelf, COLOR_ADD), SW_SHOW); ShowWindow( GetDlgItem(infoPtr->hwndSelf, 1090), SW_SHOW);
if (lprect) SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, lprect->right-lprect->left, lprect->bottom-lprect->top, SWP_NOMOVE|SWP_NOZORDER);
- ShowWindow( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_LUMBAR), SW_SHOW); - ShowWindow( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_RESULT), SW_SHOW); + ShowWindow( GetDlgItem(infoPtr->hwndSelf, COLOR_LUMSCROLL), SW_SHOW); + ShowWindow( GetDlgItem(infoPtr->hwndSelf, COLOR_SOLIDULT), SW_SHOW);
CC_EditSetRGB(infoPtr); CC_EditSetHSL(infoPtr); - ShowWindow( GetDlgItem( infoPtr->hwndSelf, IDC_COLOR_GRAPH), SW_SHOW); - UpdateWindow( GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_GRAPH) ); + ShowWindow( GetDlgItem( infoPtr->hwndSelf, COLOR_RAINBOW), SW_SHOW); + UpdateWindow( GetDlgItem(infoPtr->hwndSelf, COLOR_RAINBOW) ); }
/*********************************************************************** @@ -736,7 +737,7 @@ static void CC_SwitchToFullSize( CCPRIV *infoPtr, const RECT *lprect ) */ static void CC_PaintPredefColorArray(const CCPRIV *infoPtr, int rows, int cols) { - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_PREDEF); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_BOX1); RECT rect, blockrect; HDC hdc; HBRUSH hBrush; @@ -782,7 +783,7 @@ static void CC_PaintPredefColorArray(const CCPRIV *infoPtr, int rows, int cols) */ static void CC_PaintUserColorArray(const CCPRIV *infoPtr, int rows, int cols) { - HWND hwnd = GetDlgItem(infoPtr->hwndSelf, IDC_COLOR_USRDEF); + HWND hwnd = GetDlgItem(infoPtr->hwndSelf, COLOR_CUSTOM1); RECT rect, blockrect; HDC hdc; HBRUSH hBrush; @@ -889,14 +890,14 @@ static LRESULT CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam ) GetWindowRect(hDlg, &lpp->fullsize); if (lpp->lpcc->Flags & CC_FULLOPEN || lpp->lpcc->Flags & CC_PREVENTFULLOPEN) { - hwnd = GetDlgItem(hDlg, IDC_COLOR_DEFINE); + hwnd = GetDlgItem(hDlg, COLOR_MIX); EnableWindow(hwnd, FALSE); } if (!(lpp->lpcc->Flags & CC_FULLOPEN ) || lpp->lpcc->Flags & CC_PREVENTFULLOPEN) { rect = lpp->fullsize; res = rect.bottom - rect.top; - hwnd = GetDlgItem(hDlg, IDC_COLOR_GRAPH); /* cut at left border */ + hwnd = GetDlgItem(hDlg, COLOR_RAINBOW); /* cut at left border */ point.x = point.y = 0; ClientToScreen(hwnd, &point); ScreenToClient(hDlg,&point); @@ -904,20 +905,20 @@ static LRESULT CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam ) point.x += GetSystemMetrics(SM_CXDLGFRAME); SetWindowPos(hDlg, 0, 0, 0, point.x, res, SWP_NOMOVE|SWP_NOZORDER);
- for (i = IDC_COLOR_EDIT_H; i <= IDC_COLOR_EDIT_B; i++) + for (i = COLOR_HUE; i <= COLOR_BLUE; i++) ShowWindow( GetDlgItem(hDlg, i), SW_HIDE); - for (i = IDC_COLOR_HL; i <= IDC_COLOR_BL; i++) + for (i = COLOR_HUEACCEL; i <= COLOR_BLUEACCEL; i++) ShowWindow( GetDlgItem(hDlg, i), SW_HIDE); - ShowWindow( GetDlgItem(hDlg, IDC_COLOR_RES), SW_HIDE); - ShowWindow( GetDlgItem(hDlg, IDC_COLOR_ADD), SW_HIDE); - ShowWindow( GetDlgItem(hDlg, IDC_COLOR_GRAPH), SW_HIDE); - ShowWindow( GetDlgItem(hDlg, IDC_COLOR_RESULT), SW_HIDE); + ShowWindow( GetDlgItem(hDlg, COLOR_SOLID), SW_HIDE); + ShowWindow( GetDlgItem(hDlg, COLOR_ADD), SW_HIDE); + ShowWindow( GetDlgItem(hDlg, COLOR_RAINBOW), SW_HIDE); + ShowWindow( GetDlgItem(hDlg, COLOR_SOLIDULT), SW_HIDE); ShowWindow( GetDlgItem(hDlg, 1090 ), SW_HIDE); } else CC_SwitchToFullSize(lpp, NULL); res = TRUE; - for (i = IDC_COLOR_EDIT_H; i <= IDC_COLOR_EDIT_B; i++) + for (i = COLOR_HUE; i <= COLOR_BLUE; i++) SendMessageA( GetDlgItem(hDlg, i), EM_LIMITTEXT, 3, 0); /* max 3 digits: xyz */ if (CC_HookCallChk(lpp->lpcc)) { @@ -935,12 +936,12 @@ static LRESULT CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam ) lpp->l = CC_RGBtoHSL('L', lpp->lpcc->rgbResult);
/* Doing it the long way because CC_EditSetRGB/HSL doesn't seem to work */ - SetDlgItemInt(hDlg, IDC_COLOR_EDIT_H, lpp->h, TRUE); - SetDlgItemInt(hDlg, IDC_COLOR_EDIT_S, lpp->s, TRUE); - SetDlgItemInt(hDlg, IDC_COLOR_EDIT_L, lpp->l, TRUE); - SetDlgItemInt(hDlg, IDC_COLOR_EDIT_R, r, TRUE); - SetDlgItemInt(hDlg, IDC_COLOR_EDIT_G, g, TRUE); - SetDlgItemInt(hDlg, IDC_COLOR_EDIT_B, b, TRUE); + SetDlgItemInt(hDlg, COLOR_HUE, lpp->h, TRUE); + SetDlgItemInt(hDlg, COLOR_SAT, lpp->s, TRUE); + SetDlgItemInt(hDlg, COLOR_LUM, lpp->l, TRUE); + SetDlgItemInt(hDlg, COLOR_RED, r, TRUE); + SetDlgItemInt(hDlg, COLOR_GREEN, g, TRUE); + SetDlgItemInt(hDlg, COLOR_BLUE, b, TRUE);
CC_PaintCross(lpp); CC_PaintTriangle(lpp); @@ -962,9 +963,9 @@ static LRESULT CC_WMCommand(CCPRIV *lpp, WPARAM wParam, LPARAM lParam, WORD noti TRACE("CC_WMCommand wParam=%lx lParam=%lx\n", wParam, lParam); switch (LOWORD(wParam)) { - case IDC_COLOR_EDIT_R: /* edit notify RGB */ - case IDC_COLOR_EDIT_G: - case IDC_COLOR_EDIT_B: + case COLOR_RED: /* edit notify RGB */ + case COLOR_GREEN: + case COLOR_BLUE: if (notifyCode == EN_UPDATE && !lpp->updating) { i = CC_CheckDigitsInEdit(hwndCtl, 255); @@ -974,9 +975,9 @@ static LRESULT CC_WMCommand(CCPRIV *lpp, WPARAM wParam, LPARAM lParam, WORD noti xx = 0; switch (LOWORD(wParam)) { - case IDC_COLOR_EDIT_R: if ((xx = (i != r))) r = i; break; - case IDC_COLOR_EDIT_G: if ((xx = (i != g))) g = i; break; - case IDC_COLOR_EDIT_B: if ((xx = (i != b))) b = i; break; + case COLOR_RED: if ((xx = (i != r))) r = i; break; + case COLOR_GREEN: if ((xx = (i != g))) g = i; break; + case COLOR_BLUE: if ((xx = (i != b))) b = i; break; } if (xx) /* something has changed */ { @@ -992,18 +993,18 @@ static LRESULT CC_WMCommand(CCPRIV *lpp, WPARAM wParam, LPARAM lParam, WORD noti } break;
- case IDC_COLOR_EDIT_H: /* edit notify HSL */ - case IDC_COLOR_EDIT_S: - case IDC_COLOR_EDIT_L: + case COLOR_HUE: /* edit notify HSL */ + case COLOR_SAT: + case COLOR_LUM: if (notifyCode == EN_UPDATE && !lpp->updating) { - i = CC_CheckDigitsInEdit(hwndCtl , LOWORD(wParam) == IDC_COLOR_EDIT_H ? 239 : 240); + i = CC_CheckDigitsInEdit(hwndCtl , LOWORD(wParam) == COLOR_HUE ? 239 : 240); xx = 0; switch (LOWORD(wParam)) { - case IDC_COLOR_EDIT_H: if ((xx = ( i != lpp->h))) lpp->h = i; break; - case IDC_COLOR_EDIT_S: if ((xx = ( i != lpp->s))) lpp->s = i; break; - case IDC_COLOR_EDIT_L: if ((xx = ( i != lpp->l))) lpp->l = i; break; + case COLOR_HUE: if ((xx = ( i != lpp->h))) lpp->h = i; break; + case COLOR_SAT: if ((xx = ( i != lpp->s))) lpp->s = i; break; + case COLOR_LUM: if ((xx = ( i != lpp->l))) lpp->l = i; break; } if (xx) /* something has changed */ { @@ -1016,12 +1017,12 @@ static LRESULT CC_WMCommand(CCPRIV *lpp, WPARAM wParam, LPARAM lParam, WORD noti } break;
- case IDC_COLOR_DEFINE: + case COLOR_MIX: CC_SwitchToFullSize(lpp, &lpp->fullsize); - SetFocus( GetDlgItem(lpp->hwndSelf, IDC_COLOR_EDIT_H)); + SetFocus( GetDlgItem(lpp->hwndSelf, COLOR_HUE)); break;
- case IDC_COLOR_ADD: /* add colors ... column by column */ + case COLOR_ADD: /* add colors ... column by column */ cr = lpp->lpcc->lpCustColors; cr[(lpp->nextuserdef % 2) * 8 + lpp->nextuserdef / 2] = lpp->lpcc->rgbResult; if (++lpp->nextuserdef == 16) @@ -1029,7 +1030,7 @@ static LRESULT CC_WMCommand(CCPRIV *lpp, WPARAM wParam, LPARAM lParam, WORD noti CC_PaintUserColorArray(lpp, 2, 8); break;
- case IDC_COLOR_RES: /* resulting color */ + case COLOR_SOLID: /* resulting color */ hdc = GetDC(lpp->hwndSelf); lpp->lpcc->rgbResult = GetNearestColor(hdc, lpp->lpcc->rgbResult); ReleaseDC(lpp->hwndSelf, hdc); @@ -1112,7 +1113,7 @@ static LRESULT CC_WMMouseMove( CCPRIV *infoPtr, LPARAM lParam ) if (infoPtr->capturedGraph) { int *ptrh = NULL, *ptrs = &infoPtr->l; - if (infoPtr->capturedGraph == IDC_COLOR_GRAPH) + if (infoPtr->capturedGraph == COLOR_RAINBOW) { ptrh = &infoPtr->h; ptrs = &infoPtr->s; @@ -1149,16 +1150,16 @@ static LRESULT CC_WMLButtonDown( CCPRIV *infoPtr, LPARAM lParam ) if (CC_MouseCheckUserColorArray(infoPtr, 2, 8, lParam)) i = 1; else - if (CC_MouseCheckColorGraph(infoPtr->hwndSelf, IDC_COLOR_GRAPH, &infoPtr->h, &infoPtr->s, lParam)) + if (CC_MouseCheckColorGraph(infoPtr->hwndSelf, COLOR_RAINBOW, &infoPtr->h, &infoPtr->s, lParam)) { i = 2; - infoPtr->capturedGraph = IDC_COLOR_GRAPH; + infoPtr->capturedGraph = COLOR_RAINBOW; } else - if (CC_MouseCheckColorGraph(infoPtr->hwndSelf, IDC_COLOR_LUMBAR, NULL, &infoPtr->l, lParam)) + if (CC_MouseCheckColorGraph(infoPtr->hwndSelf, COLOR_LUMSCROLL, NULL, &infoPtr->l, lParam)) { i = 2; - infoPtr->capturedGraph = IDC_COLOR_LUMBAR; + infoPtr->capturedGraph = COLOR_LUMSCROLL; } if ( i == 2 ) { diff --git a/dlls/comdlg32/comdlg32.rc b/dlls/comdlg32/comdlg32.rc index 05b7c098d834..fb3a57a5d46f 100644 --- a/dlls/comdlg32/comdlg32.rc +++ b/dlls/comdlg32/comdlg32.rc @@ -20,6 +20,7 @@ */
#include "cdlg.h" +#include "colordlg.h" #include "filedlgbrowser.h"
#pragma makedep po @@ -277,36 +278,37 @@ FONT 8, "MS Shell Dlg"
CHOOSE_COLOR DIALOG 36, 24, 300, 185 -STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +STYLE WS_BORDER| DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Color" FONT 8, "MS Shell Dlg" { LTEXT "&Basic Colors:", stc1, 4, 4, 140, 10 LTEXT "&Custom Colors:", stc2, 4, 106, 140, 10 - LTEXT "Color | Sol&id", stc3, 150, 151, 48, 10 - LTEXT "&Red:", IDC_COLOR_RL /*1094*/,247,126,27,10 - EDITTEXT IDC_COLOR_EDIT_R, 275,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "&Green:", IDC_COLOR_GL /*1095*/,247,140,27,10 - EDITTEXT IDC_COLOR_EDIT_G, 275,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "&Blue:", IDC_COLOR_BL /*1096*/,247,154,27,10 - EDITTEXT IDC_COLOR_EDIT_B, 275,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "&Hue:" , IDC_COLOR_HL /*1091*/,200,126,24,10 - EDITTEXT IDC_COLOR_EDIT_H, 224,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "#msgctxt#Saturation#&Sat:", IDC_COLOR_SL /*1092*/,200,140,24,10 - EDITTEXT IDC_COLOR_EDIT_S, 224,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "#msgctxt#Luminance#&Lum:", IDC_COLOR_LL /*1093*/,200,154,24,10 - EDITTEXT IDC_COLOR_EDIT_L, 224,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - CONTROL "" , IDC_COLOR_PREDEF, "STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,14,140,86 - CONTROL "" , IDC_COLOR_USRDEF, "STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,116,140,28 - CONTROL "" , IDC_COLOR_GRAPH, "STATIC",WS_BORDER|SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,4,118,116 - CONTROL "" , IDC_COLOR_LUMBAR, "STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP, 278,4,8,116 - CONTROL "" , IDC_COLOR_RESULT, "STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,124,40,26 + LTEXT "Color", COLOR_SOLID_LEFT, 150, 151, 48, 10 + RTEXT "|S&olid", COLOR_SOLID_RIGHT, 170, 151, 48, 10 + LTEXT "&Red:", COLOR_REDACCEL, 247,126,27,10 + EDITTEXT COLOR_RED, 275,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Green:", COLOR_GREENACCEL, 247,140,27,10 + EDITTEXT COLOR_GREEN, 275,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Blue:", COLOR_BLUEACCEL, 247,154,27,10 + EDITTEXT COLOR_BLUE, 275,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Hue:" , COLOR_HUEACCEL, 200,126,24,10 + EDITTEXT COLOR_HUE, 224,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "#msgctxt#Saturation#&Sat:", COLOR_SATACCEL, 200,140,24,10 + EDITTEXT COLOR_SAT, 224,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "#msgctxt#Luminance#&Lum:", COLOR_LUMACCEL, 200,154,24,10 + EDITTEXT COLOR_LUM, 224,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + CONTROL "" , COLOR_BOX1, "STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,14,140,86 + CONTROL "" , COLOR_CUSTOM1, "STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,116,140,28 + CONTROL "" , COLOR_RAINBOW, "STATIC",WS_BORDER|SS_SUNKEN|SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,4,118,116 + CONTROL "" , COLOR_LUMSCROLL, "STATIC",SS_SUNKEN|SS_SIMPLE|WS_TABSTOP|WS_GROUP, 278,4,8,116 + CONTROL "" , COLOR_CURRENT, "STATIC",SS_SUNKEN|SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,124,40,26 DEFPUSHBUTTON "OK", IDOK, 4, 167, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Cancel", IDCANCEL, 58, 167, 50, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "Help", pshHelp,100,166, 44, 14 - PUSHBUTTON "&Add to Custom Colors", IDC_COLOR_ADD /*1024*/, 152, 167, 144, 14, WS_GROUP | WS_TABSTOP - PUSHBUTTON "&Define Custom Colors >>", IDC_COLOR_DEFINE /*1025*/, 4, 149, 142, 14, WS_GROUP | WS_TABSTOP - PUSHBUTTON "Color | Sol&id", IDC_COLOR_RES, 300,200,4,14 /* just a dummy */ + PUSHBUTTON "&Add to Custom Colors", COLOR_ADD, 152, 167, 144, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Define Custom Colors >>", COLOR_MIX, 4, 149, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&o", COLOR_SOLID, 300,200,4,14, WS_GROUP }
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=60271
Your paranoid android.
=== debian10 (build log) ===
../../../wine/dlls/comdlg32/colordlg.c:273:35: error: ‘COLOR_BOX1’ undeclared (first use in this function); did you mean ‘COLOR_MENU’? ../../../wine/dlls/comdlg32/colordlg.c:307:35: error: ‘COLOR_CUSTOM1’ undeclared (first use in this function); did you mean ‘COLOR_DESKTOP’? ../../../wine/dlls/comdlg32/colordlg.c:387:26: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:391:34: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:444:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:449:45: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:477:44: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? ../../../wine/dlls/comdlg32/colordlg.c:479:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:519:44: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:577:44: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:616:45: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:640:44: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? ../../../wine/dlls/comdlg32/colordlg.c:673:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:681:37: error: ‘COLOR_RED’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:682:37: error: ‘COLOR_GREEN’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:683:37: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:693:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:696:37: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:697:37: error: ‘COLOR_SAT’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:698:37: error: ‘COLOR_LUM’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:711:46: error: ‘COLOR_MIX’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:713:11: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:713:27: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:715:11: error: ‘COLOR_HUE_ACCEL’ undeclared (first use in this function); did you mean ‘COLOR_3DFACE’? ../../../wine/dlls/comdlg32/colordlg.c:715:33: error: ‘COLOR_BLUE_ACCEL’ undeclared (first use in this function); did you mean ‘COLOR_BTNFACE’? ../../../wine/dlls/comdlg32/colordlg.c:717:44: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:718:44: error: ‘COLOR_ADD’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:725:44: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? ../../../wine/dlls/comdlg32/colordlg.c:726:44: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:730:45: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:740:44: error: ‘COLOR_BOX1’ undeclared (first use in this function); did you mean ‘COLOR_MENU’? ../../../wine/dlls/comdlg32/colordlg.c:786:44: error: ‘COLOR_CUSTOM1’ undeclared (first use in this function); did you mean ‘COLOR_DESKTOP’? ../../../wine/dlls/comdlg32/colordlg.c:893:31: error: ‘COLOR_MIX’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:900:31: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:908:16: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:908:32: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:910:16: error: ‘COLOR_HUEACCEL’ undeclared (first use in this function); did you mean ‘COLOR_3DFACE’? ../../../wine/dlls/comdlg32/colordlg.c:910:37: error: ‘COLOR_BLUEACCEL’ undeclared (first use in this function); did you mean ‘COLOR_BTNFACE’? ../../../wine/dlls/comdlg32/colordlg.c:912:36: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:913:36: error: ‘COLOR_ADD’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:915:36: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:940:24: error: ‘COLOR_SAT’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:941:24: error: ‘COLOR_LUM’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:942:24: error: ‘COLOR_RED’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:943:24: error: ‘COLOR_GREEN’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:966:14: error: ‘COLOR_RED’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:967:14: error: ‘COLOR_GREEN’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:968:14: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:996:14: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:997:14: error: ‘COLOR_SAT’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:998:14: error: ‘COLOR_LUM’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:1020:14: error: ‘COLOR_MIX’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:1025:14: error: ‘COLOR_ADD’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:1033:14: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:1116:37: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:1153:50: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:1159:53: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? Task: The win32 build failed
=== debian10 (build log) ===
../../../wine/dlls/comdlg32/colordlg.c:273:35: error: ‘COLOR_BOX1’ undeclared (first use in this function); did you mean ‘COLOR_MENU’? ../../../wine/dlls/comdlg32/colordlg.c:307:35: error: ‘COLOR_CUSTOM1’ undeclared (first use in this function); did you mean ‘COLOR_DESKTOP’? ../../../wine/dlls/comdlg32/colordlg.c:387:26: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:391:34: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:444:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:449:45: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:477:44: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? ../../../wine/dlls/comdlg32/colordlg.c:479:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:519:44: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:577:44: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:616:45: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:640:44: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? ../../../wine/dlls/comdlg32/colordlg.c:673:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:681:37: error: ‘COLOR_RED’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:682:37: error: ‘COLOR_GREEN’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:683:37: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:693:53: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:696:37: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:697:37: error: ‘COLOR_SAT’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:698:37: error: ‘COLOR_LUM’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:711:46: error: ‘COLOR_MIX’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:713:11: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:713:27: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:715:11: error: ‘COLOR_HUE_ACCEL’ undeclared (first use in this function); did you mean ‘COLOR_3DFACE’? ../../../wine/dlls/comdlg32/colordlg.c:715:33: error: ‘COLOR_BLUE_ACCEL’ undeclared (first use in this function); did you mean ‘COLOR_BTNFACE’? ../../../wine/dlls/comdlg32/colordlg.c:717:44: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:718:44: error: ‘COLOR_ADD’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:725:44: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? ../../../wine/dlls/comdlg32/colordlg.c:726:44: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:730:45: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:740:44: error: ‘COLOR_BOX1’ undeclared (first use in this function); did you mean ‘COLOR_MENU’? ../../../wine/dlls/comdlg32/colordlg.c:786:44: error: ‘COLOR_CUSTOM1’ undeclared (first use in this function); did you mean ‘COLOR_DESKTOP’? ../../../wine/dlls/comdlg32/colordlg.c:893:31: error: ‘COLOR_MIX’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:900:31: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:908:16: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:908:32: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:910:16: error: ‘COLOR_HUEACCEL’ undeclared (first use in this function); did you mean ‘COLOR_3DFACE’? ../../../wine/dlls/comdlg32/colordlg.c:910:37: error: ‘COLOR_BLUEACCEL’ undeclared (first use in this function); did you mean ‘COLOR_BTNFACE’? ../../../wine/dlls/comdlg32/colordlg.c:912:36: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:913:36: error: ‘COLOR_ADD’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:915:36: error: ‘COLOR_SOLIDULT’ undeclared (first use in this function); did you mean ‘COLOR_HOTLIGHT’? ../../../wine/dlls/comdlg32/colordlg.c:940:24: error: ‘COLOR_SAT’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:941:24: error: ‘COLOR_LUM’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:942:24: error: ‘COLOR_RED’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:943:24: error: ‘COLOR_GREEN’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:966:14: error: ‘COLOR_RED’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:967:14: error: ‘COLOR_GREEN’ undeclared (first use in this function); did you mean ‘COLORREF’? ../../../wine/dlls/comdlg32/colordlg.c:968:14: error: ‘COLOR_BLUE’ undeclared (first use in this function); did you mean ‘IDS_COLOR_BLUE’? ../../../wine/dlls/comdlg32/colordlg.c:996:14: error: ‘COLOR_HUE’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:997:14: error: ‘COLOR_SAT’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:998:14: error: ‘COLOR_LUM’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:1020:14: error: ‘COLOR_MIX’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:1025:14: error: ‘COLOR_ADD’ undeclared (first use in this function); did you mean ‘COLORMAP’? ../../../wine/dlls/comdlg32/colordlg.c:1033:14: error: ‘COLOR_SOLID’ undeclared (first use in this function); did you mean ‘COLORONCOLOR’? ../../../wine/dlls/comdlg32/colordlg.c:1116:37: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:1153:50: error: ‘COLOR_RAINBOW’ undeclared (first use in this function); did you mean ‘COLOR_WINDOW’? ../../../wine/dlls/comdlg32/colordlg.c:1159:53: error: ‘COLOR_LUMSCROLL’ undeclared (first use in this function); did you mean ‘COLOR_SCROLLBAR’? Task: The wow64 build failed