Dan Kegel : commdlg: Let the color picker respond properly to keystrokes.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Dec 31 08:20:40 CST 2005


Module: wine
Branch: refs/heads/master
Commit: 0ab7cfc5b2e003be5b11069e53e4d296ac75a8b6
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0ab7cfc5b2e003be5b11069e53e4d296ac75a8b6

Author: Dan Kegel <dank at kegel.com>
Date:   Sat Dec 31 13:23:30 2005 +0100

commdlg: Let the color picker respond properly to keystrokes.

---

 dlls/commdlg/colordlg.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/commdlg/colordlg.c b/dlls/commdlg/colordlg.c
index 99061d1..10cf04f 100644
--- a/dlls/commdlg/colordlg.c
+++ b/dlls/commdlg/colordlg.c
@@ -671,7 +671,7 @@ void CC_EditSetHSL( HWND hDlg, int h, in
 {
  char buffer[10];
  LCCPRIV lpp = (LCCPRIV)GetWindowLongPtrW(hDlg, DWLP_USER);
- lpp->updating = TRUE;
+
  if (IsWindowVisible( GetDlgItem(hDlg, 0x2c6) ))   /* if full size */
  {
    lpp->updating = TRUE;
@@ -938,7 +938,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM 
     COLORREF *cr;
     LCCPRIV lpp = (LCCPRIV)GetWindowLongPtrW(hDlg, DWLP_USER);
     TRACE("CC_WMCommand wParam=%x lParam=%lx\n", wParam, lParam);
-    switch (wParam)
+    switch (LOWORD(wParam))
     {
           case 0x2c2:  /* edit notify RGB */
 	  case 0x2c3:
@@ -950,7 +950,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM 
 			   g = GetGValue(lpp->lpcc->rgbResult);
 			   b= GetBValue(lpp->lpcc->rgbResult);
 			   xx = 0;
-			   switch (wParam)
+			   switch (LOWORD(wParam))
 			   {
 			    case 0x2c2: if ((xx = (i != r))) r = i; break;
 			    case 0x2c3: if ((xx = (i != g))) g = i; break;
@@ -975,9 +975,9 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM 
 	  case 0x2c1:
 	       if (notifyCode == EN_UPDATE && !lpp->updating)
 			 {
-			   i = CC_CheckDigitsInEdit(hwndCtl , wParam == 0x2bf ? 239:240);
+			   i = CC_CheckDigitsInEdit(hwndCtl , LOWORD(wParam) == 0x2bf ? 239:240);
 			   xx = 0;
-			   switch (wParam)
+			   switch (LOWORD(wParam))
 			   {
 			    case 0x2bf: if ((xx = ( i != lpp->h))) lpp->h = i; break;
 			    case 0x2c0: if ((xx = ( i != lpp->s))) lpp->s = i; break;




More information about the wine-cvs mailing list