Export (0) Print
Expand All

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, 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

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

LVN_ENDLABELEDITW (Unicode) and LVN_ENDLABELEDITA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft