I have a listview in small icon mode on a modeless Win32 dialog with LVS_EDITLABELS
set. Regardless of whether editing was begun by a mouse click or programmatically by calling ListView_LabelEdit()
and regardless of whether ESC or RETURN was hit upon finishing editing, when LVN_ENDLABELEDIT
notification is received pszText
of NMLVDISPINFO
is always NULL, thus indicating a canceled edit. Returning TRUE from this notification has no effect.
I have found KB article http://support.microsoft.com/kb/130691 which applies to a treeview. Even following advice found there and subclassing the edit control did not work.
I suspect the default dialog logic is eating RETURN away and canceling the edit and I have no idea how to prevent this.