use the same #if wxUSE_XXX checks in platform-specific files as around wxTextEntryBase implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-10-28 00:03:23 +00:00
parent 06d7ed27a1
commit 96a4cdebda
2 changed files with 7 additions and 0 deletions

View 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

View 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