Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / xrc / xh_combo.cpp
index da2040909cec70fbac60bb884330bc1e95203f0f..78e1556cc90591132ef44bc4e92114e8071b0ecb 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/combobox.h"
+    #include "wx/textctrl.h"    // for wxTE_PROCESS_ENTER
 #endif
 
+#include "wx/xml/xml.h"
+
 IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
 
 wxComboBoxXmlHandler::wxComboBoxXmlHandler()
@@ -34,6 +37,7 @@ wxComboBoxXmlHandler::wxComboBoxXmlHandler()
     XRC_ADD_STYLE(wxCB_SORT);
     XRC_ADD_STYLE(wxCB_READONLY);
     XRC_ADD_STYLE(wxCB_DROPDOWN);
+    XRC_ADD_STYLE(wxTE_PROCESS_ENTER);
     AddWindowStyles();
 }