X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be329a3de37ac678871cfcce9291b15c4f27d5a2..606b005fb2b535b34d1ca45d2d06ee86718e8b1c:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 62850ac1d1..13d6e784d3 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -28,6 +28,8 @@ #pragma hdrstop #endif +#if wxUSE_TEXTCTRL + #ifndef WX_PRECOMP #include "wx/textctrl.h" #include "wx/settings.h" @@ -54,13 +56,7 @@ #include #include -#if wxUSE_IOSTREAMH -# include -#else -# include -#endif - -#if wxUSE_RICHEDIT && !defined(__GNUWIN32_OLD__) +#if wxUSE_RICHEDIT && (!defined(__GNUWIN32_OLD__) || defined(__CYGWIN10__)) #include #endif @@ -1313,6 +1309,10 @@ bool wxTextCtrl::SetStyle(long start, long end, const wxTextAttr& style) } #if wxUSE_RICHEDIT2 +#ifndef CFM_BACKCOLOR +#define CFM_BACKCOLOR 0x04000000 +#endif + if ( wxRichEditModule::GetLoadedVersion() > 1 && style.HasBackgroundColour() ) { cf.dwMask |= CFM_BACKCOLOR; @@ -1399,3 +1399,4 @@ bool wxRichEditModule::Load(int version) #endif // wxUSE_RICHEDIT +#endif // wxUSE_TEXTCTRL