]> git.saurik.com Git - wxWidgets.git/commitdiff
use the same #if wxUSE_XXX checks in platform-specific files as around wxTextEntryBas...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Oct 2007 00:03:23 +0000 (00:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Oct 2007 00:03:23 +0000 (00:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textentry.cpp
src/msw/textentry.cpp

index ad8170294e97cbbb53e5730af35210a99cfcc28a..18ca8fafc4380acf97f3a64319698c3faa24780e 100644 (file)
@@ -23,6 +23,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX
+
 #ifndef WX_PRECOMP
     #include "wx/window.h"
     #include "wx/textctrl.h"
@@ -284,3 +286,4 @@ void wxTextEntry::SendMaxLenEvent()
     win->GetEventHandler()->ProcessEvent(event);
 }
 
+#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX
index d07b8a93c27320eb4747e75e7e1f00be6ed831e0..e08b413d17fcfc2d7d2144d8c70459987c2ee4f0 100644 (file)
@@ -27,6 +27,8 @@
     #include "wx/string.h"
 #endif // WX_PRECOMP
 
+#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX
+
 #include "wx/textentry.h"
 
 #include "wx/msw/private.h"
@@ -154,3 +156,5 @@ void wxTextEntry::SetMaxLength(unsigned long len)
 
     ::SendMessage(GetEditHwnd(), EM_LIMITTEXT, len, 0);
 }
+
+#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX