#include "wx/dynarray.h"
#include "wx/imaglist.h"
#include "wx/treectrl.h"
+#include "wx/settings.h"
#ifdef __GNUWIN32__
#ifndef wxUSE_NORLANDER_HEADERS
// ----------------------------------------------------------------------------
// a convenient wrapper around TV_ITEM struct which adds a ctor
+#pragma warning( disable : 4097 )
struct wxTreeViewItem : public TV_ITEM
{
wxTreeViewItem(const wxTreeItemId& item, // the item handle
hItem = (HTREEITEM) (WXHTREEITEM) item;
}
};
+#pragma warning( default : 4097 )
// a class which encapsulates the tree traversal logic: it vists all (unless
// OnVisit() returns FALSE) items under the given one
if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
return FALSE;
- // the treectrl with any other background looks ugly because the items
- // background is white anyhow
- SetBackgroundColour(*wxWHITE);
+ SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
+ SetForegroundColour(wxWindow::GetParent()->GetForegroundColour());
+
// VZ: this is some experimental code which may be used to get the
// TVS_CHECKBOXES style functionality for comctl32.dll < 4.71.