removed (unused) nCtlColor parameter of OnCtlColor()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-19 19:04:09 +00:00
parent 195df7a767
commit 9f368d0d59
2 changed files with 4 additions and 6 deletions

View File

@ -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);
}
}

View File

@ -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.