X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f94dfb3897b96c8884210f9dc0a2cf225ab12898..c2c767d34caa038f67db551698fdcc2561ed230c:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 1bea290c7e..7a3c2e5828 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -31,7 +31,7 @@ #include "wx/msw/private.h" -#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) +#if defined(__WIN95__) && !((defined(__GNUWIN32_OLD__) || defined(__TWIN32__)) && !defined(__CYGWIN10__)) #include #endif @@ -223,10 +223,17 @@ void wxControl::OnEraseBackground(wxEraseEvent& event) ::SetMapMode(hdc, mode); } -WXHBRUSH wxControl::OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, +WXHBRUSH wxControl::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED(nCtlColor), +#if wxUSE_CTL3D WXUINT message, WXWPARAM wParam, - WXLPARAM lParam) + WXLPARAM lParam +#else + WXUINT WXUNUSED(message), + WXWPARAM WXUNUSED(wParam), + WXLPARAM WXUNUSED(lParam) +#endif + ) { #if wxUSE_CTL3D if ( m_useCtl3D )