TreeView_EndEditLabelNow macro (commctrl.h)
Ends the editing of a tree-view item's label. You can use this macro or send the TVM_ENDEDITLABELNOW message explicitly.
Syntax
BOOL TreeView_EndEditLabelNow(
HWND hwnd,
BOOL fCancel
);
Parameters
hwnd
Type: HWND
Handle to the tree-view control.
fCancel
Type: BOOL
Variable that indicates whether the editing is canceled without being saved to the label. If this parameter is TRUE, the system cancels editing without saving the changes. Otherwise, the system saves the changes to the label.
Return value
Type: BOOL
Returns TRUE if successful, or FALSE otherwise.
Remarks
This macro causes the TVN_ENDLABELEDIT notification code to be sent to the parent window of the tree-view control.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |