From: Vadim Zeitlin Date: Fri, 19 Nov 2004 19:04:09 +0000 (+0000) Subject: removed (unused) nCtlColor parameter of OnCtlColor() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9f368d0d598de57bedce94bcccdc69520f7acee8?ds=sidebyside;hp=195df7a7672277af495a4ecf9bf6eee2a7517069 removed (unused) nCtlColor parameter of OnCtlColor() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 90e3f2b7c3..7d293875c9 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -578,12 +578,11 @@ WXLRESULT wxChoice::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) case WM_CTLCOLORLISTBOX: case WM_CTLCOLORSTATIC: { - WXWORD nCtlColor; 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); } } diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 202dd9de97..9fb4b7ffe2 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -248,12 +248,11 @@ WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara // wxCB_READONLY case WM_CTLCOLOREDIT: case WM_CTLCOLORSTATIC: - WXWORD nCtlColor; 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.