I've hacked the TreeView message parts of commctrl.h into a vb module, but I'm struggling to make it work. Single argument calls are ok, but once we get into references to UDTs etc. I'm getting lost in byval and byref.

So:

a) I need some help making the SendMessage calls actually work (maybe necessary to do some VarPtr's an CopyMemory's)

b) once a). is sorted I want to make the module easy to use(i.e. hide all the nasty API and pointer and references etc. and call things by passing object refs. (for example))

Anyone wanna help me out?