]> git.saurik.com Git - wxWidgets.git/commitdiff
removed (unused) nCtlColor parameter of OnCtlColor()
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Nov 2004 19:04:09 +0000 (19:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Nov 2004 19:04:09 +0000 (19:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp
src/msw/combobox.cpp

index 90e3f2b7c3b971a11defa7224f261172a11aba27..7d293875c9e926948ef45fa5bde3533fa357fb57 100644 (file)
@@ -578,12 +578,11 @@ WXLRESULT wxChoice::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
         case WM_CTLCOLORLISTBOX:
         case WM_CTLCOLORSTATIC:
             {
         case WM_CTLCOLORLISTBOX:
         case WM_CTLCOLORSTATIC:
             {
-                WXWORD nCtlColor;
                 WXHDC hdc;
                 WXHWND hwnd;
                 WXHDC hdc;
                 WXHWND hwnd;
-                UnpackCtlColor(wParam, lParam, &nCtlColor, &hdc, &hwnd);
+                UnpackCtlColor(wParam, lParam, &hdc, &hwnd);
 
 
-                return (WXLRESULT)OnCtlColor(hdc, hwnd, nCtlColor,
+                return (WXLRESULT)OnCtlColor(hdc, hwnd, 0,
                                              nMsg, wParam, lParam);
             }
     }
                                              nMsg, wParam, lParam);
             }
     }
index 202dd9de97963a92e2f20d01b34cfdde7052fd00..9fb4b7ffe2d2f2958a14be0c2cd447cea7b8d8ed 100644 (file)
@@ -248,12 +248,11 @@ WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
         // wxCB_READONLY
         case WM_CTLCOLOREDIT:
         case WM_CTLCOLORSTATIC:
         // wxCB_READONLY
         case WM_CTLCOLOREDIT:
         case WM_CTLCOLORSTATIC:
-            WXWORD nCtlColor;
             WXHDC hdc;
             WXHWND hwnd;
             WXHDC hdc;
             WXHWND hwnd;
-            UnpackCtlColor(wParam, lParam, &nCtlColor, &hdc, &hwnd);
+            UnpackCtlColor(wParam, lParam, &hdc, &hwnd);
 
 
-            return (WXLRESULT)OnCtlColor(hdc, hwnd, nCtlColor, nMsg, wParam, lParam);
+            return (WXLRESULT)OnCtlColor(hdc, hwnd, 0, nMsg, wParam, lParam);
             
         case CB_SETCURSEL:
             // Selection was set with SetSelection.  Update the value too.
             
         case CB_SETCURSEL:
             // Selection was set with SetSelection.  Update the value too.