diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index b953bf3f3a..8947c56632 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3906,6 +3906,10 @@ wxGrid::~wxGrid() // be removed as well as the #else cases below. #define _USE_VISATTR 0 +#if _USE_VISATTR +#include "wx/listbox.h" +#endif + void wxGrid::Create() { m_created = FALSE; // set to TRUE by CreateGrid diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index f7af67c6b4..4ef33b5262 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5250,7 +5250,9 @@ bool wxGenericListCtrl::SetFont( const wxFont &font ) +#if _USE_VISATTR #include "wx/listbox.h" +#endif //static wxVisualAttributes diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index c7cfd6b854..82f3061c0f 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -3446,7 +3446,9 @@ void wxGenericTreeCtrl::OnGetToolTip( wxTreeEvent &event ) // be removed, as well as the #else case below. #define _USE_VISATTR 0 +#if _USE_VISATTR #include "wx/listbox.h" +#endif //static wxVisualAttributes