Howto access TVITEM struct from TreeNode handle?
Timo,
Unfortunately, no, you will have to do as you said and define the TVITEM
structure as well as make the call to SendMessage to set/get the contents of
the structure.
Hope this helps.
--
- Nicholas Paldino [.NET MVP]
Quote:
> hello world,
> i would like to do some "low-level manipulation" on a TreeNode from C#
> (setting of LPSTR_TEXTCALLBACK in the TVITEM struct as documented for
C++).
> Is this TVITEM struct somehow accessible from my C# TreeNode.Handle? Or
> would i have to setup the whole TreeNode as a TVITEM and add to the Tree
> through a WindowsAPI.SendMessage()?
> tyia
> .Timo