CustomTreeCtrl on Windows :-(

Hi All,

    as per Robin request, I am trying to adapt CustomTreeCtrl on
Windows to look more like the native wx.TreeCtrl [*].
The main problem for me is that it doesn't seem to exist a rationale
behind the implementation on MSW: the 2 attached images have exactly
the same wx.TR_ style but different imagelist sizes and indentation.
you can notice that the lines at root are sometimes drawn and
sometimes not (!), there is an incomprehensible (to me) space between
the buttons and the vertical lines in the big-imagelist tree. And the
discrepancies go further.
I have somewhat fixed the [*] issue, but I am still puzzled on how the
hell MS implemented it. Maybe I am not that good in spotting
relationships between spacings, images and actual drawing of items.
I have browsed the net in a search of some details on how it was
actually implemented, but got a "strike three, you're out" from
Google/MSDN. Does anyone know where I could actually find some detail
on the MSW implementation of that beast? It would be nice to have an
option in CustomTreeCtrl (like TR_MSW_STYLE) which draws it as close
as possible to the MSW native one, but I have hit so many walls till
now that I am probably going to give up :frowning:

Thank you for any pointer :smiley:

[*] The lines for items without subitems connect to their parent's
icon, instead of the parent's +/- button. That's just an example,
there are many more tricks...

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/