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:
parent
06d7ed27a1
commit
96a4cdebda
@ -23,6 +23,8 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/window.h"
|
#include "wx/window.h"
|
||||||
#include "wx/textctrl.h"
|
#include "wx/textctrl.h"
|
||||||
@ -284,3 +286,4 @@ void wxTextEntry::SendMaxLenEvent()
|
|||||||
win->GetEventHandler()->ProcessEvent(event);
|
win->GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX
|
||||||
|
|
||||||
#include "wx/textentry.h"
|
#include "wx/textentry.h"
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
@ -154,3 +156,5 @@ void wxTextEntry::SetMaxLength(unsigned long len)
|
|||||||
|
|
||||||
::SendMessage(GetEditHwnd(), EM_LIMITTEXT, len, 0);
|
::SendMessage(GetEditHwnd(), EM_LIMITTEXT, len, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX
|
||||||
|
Loading…
Reference in New Issue
Block a user