#if wxUSE_LISTBOX
+#include "wx/listbox.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
- #include "wx/listbox.h"
#endif //WX_PRECOMP
#include "wx/cocoa/string.h"
#if wxUSE_LISTBOX
+#include "wx/listbox.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
- #include "wx/listbox.h"
#include "wx/arrstr.h"
#endif
#include "wx/valtext.h"
#include "wx/intl.h"
#include "wx/math.h"
+ #include "wx/listbox.h"
#endif
#include "wx/textfile.h"
// be removed as well as the #else cases below.
#define _USE_VISATTR 0
-#if _USE_VISATTR
-#include "wx/listbox.h"
-#endif
-
void wxGrid::Create()
{
// set to true by CreateGrid
#if wxUSE_LISTCTRL
-#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
- #include "wx/app.h"
- #include "wx/dcscreen.h"
- #include "wx/textctrl.h"
-#endif
-
// under Win32 we always use the native version and also may use the generic
// one, however some things should be done only if we use only the generic
// version
IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxGenericListCtrl)
#endif // HAVE_NATIVE_LISTCTRL/!HAVE_NATIVE_LISTCTRL
+#ifndef WX_PRECOMP
+ #include "wx/dynarray.h"
+ #include "wx/app.h"
+ #include "wx/dcscreen.h"
+ #include "wx/textctrl.h"
+ #include "wx/listbox.h"
+#endif
+
#include "wx/selstore.h"
#include "wx/renderer.h"
#include "wx/math.h"
return true;
}
-#if _USE_VISATTR
-#include "wx/listbox.h"
-#endif
-
// static
wxVisualAttributes
wxGenericListCtrl::GetClassDefaultAttributes(wxWindowVariant variant)
#include "wx/dcclient.h"
#include "wx/timer.h"
#include "wx/settings.h"
+ #include "wx/listbox.h"
#endif
#include "wx/generic/treectlg.h"
// be removed, as well as the #else case below.
#define _USE_VISATTR 0
-#if _USE_VISATTR
-#include "wx/listbox.h"
-#endif
-
//static
wxVisualAttributes
#if _USE_VISATTR
#if wxUSE_LISTBOX
+#include "wx/vlbox.h"
+
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/dcclient.h"
+ #include "wx/listbox.h"
#endif //WX_PRECOMP
-#include "wx/vlbox.h"
#include "wx/dcbuffer.h"
#include "wx/selstore.h"
wxVListBox::~wxVListBox()
{
- delete m_doubleBuffer;
+ delete m_doubleBuffer;
delete m_selStore;
}
// use the same default attributes as wxListBox
// ----------------------------------------------------------------------------
-#include "wx/listbox.h"
-
//static
wxVisualAttributes
wxVListBox::GetClassDefaultAttributes(wxWindowVariant variant)
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h"
+ #include "wx/listbox.h"
#endif
#include "wx/layout.h"
-#include "wx/listbox.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/tooltip.h"
#if wxUSE_LISTBOX
+#include "wx/listbox.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
- #include "wx/listbox.h"
#include "wx/settings.h"
#include "wx/brush.h"
#include "wx/font.h"
#include "wx/dcmemory.h"
#include "wx/dcscreen.h"
#include "wx/settings.h"
+ #include "wx/listbox.h"
#endif
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/bitmap.h"
-#include "wx/listbox.h"
#include "wx/ownerdrw.h"
#define INCL_PM
#include "wx/scrolbar.h"
#include "wx/slider.h"
#include "wx/textctrl.h"
- #include "wx/listbox.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
+ #include "wx/listbox.h"
#endif
#include "wx/layout.h"
-#include "wx/listbox.h"
#include "wx/scrolwin.h"
#include "wx/module.h"
#include "wx/menuitem.h"
#pragma hdrstop
#endif
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_LISTBOX
#include "wx/xrc/xh_listb.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
+ #include "wx/listbox.h"
#endif
-#include "wx/listbox.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxListBoxXmlHandler, wxXmlResourceHandler)
wxListBoxXmlHandler::wxListBoxXmlHandler()
(m_insideBox && node->GetName() == wxT("item")));
}
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_LISTBOX