How to change label of CTreeCtrl Item?

Hi,

i have a CTreeCtrl whose root label is initially set to "all rules".
now i want to change it in certain way, that is:

if (...)
 change root label to "no rule found"

but it is different to use EditLabel() coz EditLabel() allows user to double click the text then change it. my intention is to change it dynamically during program execution by me, not by uer clicking.

thanks a lot!
greenbirdAsked:
Who is Participating?
 
SteveGTRConnect With a Mentor Commented:
This should do the trick:

SetItemText(GetRootItem(), "no rule found");

Good Luck,
Steve
0
All Courses

From novice to tech pro — start learning today.