Click to See Complete Forum and Search --> : Bug w/ in place editing for tree control


thomasau
May 11th, 1999, 07:38 PM
Hi Everyone,

I have dialog box which contains a tree control. In the tree control, I allow the user to edit (in place) the items in the tree. As soon as the user hits the Enter key to signify the end of editing, my CDialog::OnOK() gets called immediately (even before I get the notification message TVN_ENDLABELEDIT). Has anyone seen this? I don't get the same problem if the code is moved to a CFormView. Thanks in advance.

BTW, I don't get this problem if the user edits the tree items, and clicks on another item in the tree control (to signify the edit of an edit).

Stu
May 13th, 1999, 08:25 AM
The answer is on this very site!

http://www.codeguru.com/treeview/esc_edit.shtml