Click to See Complete Forum and Search --> : TreeCntrl - Edit Label


manjaly
June 3rd, 1999, 01:15 AM
I want to change the text of treecntrl label just when user starts edit label. I am able to caprute this message, but whatever text I set is not coming to effect. Even SetItemText has no effect in OnBeginLabel..(). The new text is coming to effect only after user finishes editing. Somebody please suggest a solution for this.
Thanks in advance.

eric33
June 3rd, 1999, 01:47 AM
Just get the tree edit control and change the text when user starts editing.

Here is a sample :


// Get the edit control
CEdit *edt=m_tree.GetEditControl();
// Change the text
if ( edt )
edt->SetWindowText("MYTEXT");




Hope this help