/***********************************************************************
* CC_CheckDigitsInEdit [internal]
*/
+#ifdef __REACTOS__
+static int CC_CheckDigitsInEdit( CCPRIV *infoPtr, HWND hwnd, int maxval )
+#else
static int CC_CheckDigitsInEdit( HWND hwnd, int maxval )
+#endif
{
int i, k, m, result, value;
long editpos;
if (result)
{
editpos = SendMessageA(hwnd, EM_GETSEL, 0, 0);
+#ifdef __REACTOS__
+ infoPtr->updating = TRUE;
+#endif
SetWindowTextA(hwnd, buffer );
+#ifdef __REACTOS__
+ infoPtr->updating = FALSE;
+#endif
SendMessageA(hwnd, EM_SETSEL, 0, editpos);
}
return value;
case IDC_COLOR_EDIT_B:
if (notifyCode == EN_UPDATE && !lpp->updating)
{
+#ifdef __REACTOS__
+ i = CC_CheckDigitsInEdit(lpp, hwndCtl, 255);
+#else
i = CC_CheckDigitsInEdit(hwndCtl, 255);
+#endif
r = GetRValue(lpp->lpcc->rgbResult);
g = GetGValue(lpp->lpcc->rgbResult);
b= GetBValue(lpp->lpcc->rgbResult);
CC_EditSetHSL(lpp);
CC_PaintCross(lpp);
CC_PaintTriangle(lpp);
+#ifdef __REACTOS__
+ CC_PaintLumBar(lpp);
+#endif
}
}
break;
case IDC_COLOR_EDIT_L:
if (notifyCode == EN_UPDATE && !lpp->updating)
{
+#ifdef __REACTOS__
+ i = CC_CheckDigitsInEdit(lpp, hwndCtl , LOWORD(wParam) == IDC_COLOR_EDIT_H ? 239 : 240);
+#else
i = CC_CheckDigitsInEdit(hwndCtl , LOWORD(wParam) == IDC_COLOR_EDIT_H ? 239 : 240);
+#endif
xx = 0;
switch (LOWORD(wParam))
{