|
-
January 20th, 2000, 05:17 AM
#1
renaming tree control item ?
hi there!
I want to rename an item of a tree control. I used the following
code:
void CMyarchivDlg::OnBeginlabeleditTree1(NMHDR* pNMHDR, LRESULT* pResult)
{
CString sText;
TV_DISPINFO* pTVDispInfo = (TV_DISPINFO*)pNMHDR;
UpdateData(TRUE);
sText.Format("%s",m_MyTreeControl.EditLabel(m_MyTreeControl.GetSelectedItem()));
m_MyTreeControl.SetItemText(m_MyTreeControl.GetSelectedItem(),sText);
UpdateData(FALSE);
*pResult = 0;
}
Unfortunately it doesn't work.
Can anyone give my a hint what's wrong ?
THANX in advance
greetz
cheops
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|