The TVM_ENDEDITLABELNOW message ends the editing of a tree-view item’s label. You can send this message explicitly or by using the TreeView_EndEditLabelNow macro.
TVM_ENDEDITLABELNOW wParam = (WPARAM) (BOOL) fCancel; lParam = 0;
Returns TRUE if successful or FALSE otherwise.
This message causes the TVN_ENDLABELEDIT notification message to be sent to the parent window of the tree-view control.