#pragma hdrstop
#endif
+#include "wx/combo.h"
+
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
extern WXDLLEXPORT_DATA(const char) wxComboBoxNameStr[] = "comboBox";
-#endif
-
-#if wxUSE_COMBOCTRL
-
-#ifndef WX_PRECOMP
- #include "wx/app.h"
- #include "wx/log.h"
- #include "wx/dcclient.h"
- #include "wx/settings.h"
- #include "wx/timer.h"
- #include "wx/textctrl.h"
-#endif
-
-#include "wx/tooltip.h"
-
-#include "wx/combo.h"
-
// ----------------------------------------------------------------------------
// XTI
wxCONSTRUCTOR_5( wxComboBox, wxWindow*, Parent, wxWindowID, Id, \
wxString, Value, wxPoint, Position, wxSize, Size )
+#endif // wxUSE_COMBOBOX
+
+#if wxUSE_COMBOCTRL
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/log.h"
+ #include "wx/dcclient.h"
+ #include "wx/settings.h"
+ #include "wx/timer.h"
+ #include "wx/textctrl.h"
+#endif
+
+#include "wx/tooltip.h"
+
// constants
// ----------------------------------------------------------------------------
void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
{
// On Mac, this leads to infinite recursion and eventually a crash
-#ifndef __WXMAC__
+#ifdef __WXMAC__
+ wxUnusedVar(event);
+#else
if ( event.GetEventType() == wxEVT_SET_FOCUS )
{
wxWindow* tc = GetTextCtrl();