Advertisement

[Win32 API]Changing treeview text at runtime

Started by July 28, 2001 05:34 AM
2 comments, last by Clash Rocker 23 years, 6 months ago
How can I change the text of a treeview item from my program? I don''t mean using the user to edit the label. Is it possible without destroying the item and recreating?
I''ve done this in vb, it should be similar. basically you just set the text of the TreeView.
TreeView.nodes(x).text="something"
that''s what''d look like in vb, should be similar in C++.

Never underestimate the power of stupid people in large groups.

HHSDrum@yahoo.com
Polarisoft Home Page
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Advertisement
Hmmm.
Don't think it is that simple.

I tried some stuff inside
WM_NOTIFY: 



tvi = ((NM_TREEVIEW *)lParam)->tviNew;
tvi.pszText = "foobar";


But I don't think that world work. Once the node is created
I think that's it?


Edited by - Clash Rocker on July 28, 2001 10:10:16 AM
Use the message TVM_SETITEM.

Bjørn.
We are boki. The rest is known.

This topic is closed to new replies.

Advertisement