#if wxUSE_TREECTRL
#include "wx/treectrl.h"
+#include "wx/imaglist.h"
// ----------------------------------------------------------------------------
// events
// need some minimal size even for empty tree
if ( !size.x || !size.y )
size = wxControl::DoGetBestSize();
+ else
+ CacheBestSize(size);
return size;
}