If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
I have lived with this problem for many years now without bumping a solution. It have become annoyance to my application.
How can make AppendContainer show different icons? Here is the code I use:
I think this is a bug at least in the generic version of wxDVC that is used under Windows.
In /src/common/datavcmn.cpp comment out these two occurences of "if (HasImageList()) return".
However, as i don't understand what the initial purpose of these lines was, it might have some negative side effects somewhere else. Better open a bug report about this.
The important line is "container->SetExpanded( false );". Without this (because HasImageList() returns true), the container is not marked as "expanded". But later, in wxDataViewTreeStore::GetValue() in /src/common/datavcmn.cpp, container->IsExpanded() is used to decide which icon to use.