LVN_ENDLABELEDIT
The
LVN_ENDLABELEDIT notification message notifies a list view control s parent
window about the end of label editing for an item. This notification message is
sent in the form of a WM_NOTIFY
LVN_ENDLABELEDIT
pdi = (LV_DISPINFO FAR *) lParam;
Parameters
pdi
Pointer to an
LV_DISPINFO
If the user
cancels editing, the pszText member of the LV_ITEM structure is
NULL; otherwise, pszText is a pointer to the edited text.
Return Values
If the pszText
member of the LV_ITEM structure is non-NULL, return TRUE to set the
item s label to the edited text. Return FALSE to reject the edited text and
revert to the original label.
If the pszText
member of the LV_ITEM structure is NULL, the return value is ignored.
Remarks
When the user
begins editing an item label, the parent window of the list view control
receives an LVN_BEGINLABELEDIT notification message. When the user cancels or
completes the editing, the parent window receives an LVN_ENDLABELEDIT
notification message.
The pszText
member of the LV_ITEM structure contained within the LV_DISPINFO
structure pointed to by pdi contains a valid value when the
LVN_ENDLABELEDIT message is sent, regardless of whether the LVIF_TEXT flag is
set in the mask member of the LV_ITEM structure. Note that NULL
is a valid value for pszText, indicating the cancellation of the label
editing operation.
See Also