Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

TVN_ENDLABELEDIT notification code

Notifies a tree-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.


TVN_ENDLABELEDIT 

    ptvdi = (LPNMTVDISPINFO) lParam 

Parameters

lParam

Pointer to an NMTVDISPINFO structure. The item member of this structure is a TVITEM structure whose hItem, lParam, and pszText members contain valid information about the item that was edited. If label editing was canceled, the pszText member of the TVITEM structure is NULL; otherwise, pszText is the address of the edited text.

Return value

If the pszText member 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.

Remarks

If the pszText member is NULL, the return value is ignored.

If you specified the LPSTR_TEXTCALLBACK value for this item and the pszText member is non-NULL, your TVN_ENDLABELEDIT handler should copy the text from pszText to your local storage.

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

TVN_ENDLABELEDITW (Unicode) and TVN_ENDLABELEDITA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.