Редагувати

Поділитися через


LVN_ENDLABELEDIT notification code

Notifies a list-view control's parent window about the end of label editing for an item. This notification code is sent in the form of a WM_NOTIFY message.

LVN_ENDLABELEDIT

    pdi = (LPNMLVDISPINFO) lParam; 

Parameters

lParam

Pointer to an NMLVDISPINFO structure. The item member of this structure is an LVITEM structure whose iItem member identifies the item being edited. The pszText member of item contains a valid value when the LVN_ENDLABELEDIT notification code is sent, regardless of whether the LVIF_TEXT flag is set in the mask member of the LVITEM structure. If the user cancels editing or doesn't change the text and presses Enter key, the pszText member of the LVITEM structure is NULL; otherwise, pszText is the address of the edited text.

Return value

If the pszText member of the LVITEM 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 LVITEM structure is NULL, the return value is ignored.

Remarks

The return value of the dialog procedure is whether the message was handled. The second return value must be set by calling SetwindowLongPtr with DWLP_MSGRESULT.

When the user begins editing an item label, the parent window of the list-view control receives an LVN_BEGINLABELEDIT notification code. When the user cancels or completes the editing, the parent window receives an LVN_ENDLABELEDIT notification code.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
LVN_ENDLABELEDITW (Unicode) and LVN_ENDLABELEDITA (ANSI)