]> git.saurik.com Git - wxWidgets.git/commitdiff
Include <wx/textctrl.h> from <wx/combobox.h> for compatibility.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2012 17:55:42 +0000 (17:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2012 17:55:42 +0000 (17:55 +0000)
The wxComboBox header itself doesn't need <wx/textctrl.h> but there exists
code using wxComboBox with wxTextCtrl styles and events that doesn't include
<wx/textctrl.h> explicitly because it wasn't necessary in 2.8. So include it
from wx/combobox.h to avoid breaking this code after an upgrade to 2.9.

Closes #14132.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/combobox.h

index a1a8a4386c802d7cf1d42fd521cbb8387166085d..f4dae22dcc1b7e1e9fe3a32953d3c9155f4b9910 100644 (file)
 
 #if wxUSE_COMBOBOX
 
 
 #if wxUSE_COMBOBOX
 
+// For compatibility with 2.8 include this header to allow using wxTE_XXX
+// styles with wxComboBox without explicitly including it in the user code.
+#include "wx/textctrl.h"
+
 extern WXDLLIMPEXP_DATA_CORE(const char) wxComboBoxNameStr[];
 
 // ----------------------------------------------------------------------------
 extern WXDLLIMPEXP_DATA_CORE(const char) wxComboBoxNameStr[];
 
 // ----------------------------------------------------------------------------