hi all,
how can i save the text i enter while editing a lable of a listview item?
according to m$ the handle of the new created edit while editing the item is destroyed and there for i need to save the text and to reSet it's new text.

invoke SendDlgItemMessage,hWnd,ID,LVM_EDITLABEL, index, 0

i was thinking about
mov hEdit,eax
and get the new text from that handle, but as m$ said is that the edit is destoryed..

When the user completes or cancels editing, the edit control is destroyed and the handle is no longer valid. You can safely subclass the edit control, but you should not destroy it.


can someone please help me on this part?
thnx, Wizz
Posted on 2002-09-12 14:02:52 by wizzra
You should catch LVN_ENDLABELEDIT.
"The LVN_ENDLABELEDIT notification message notifies a list view control's parent window about the end of label editing for an item."

.if uMsg == WM_NOTIFY

.elseif wParam == idListView
mov eax, lParam
assume eax:PTR NMHDR
.if [eax].code == LVN_ENDLABELEDIT
assume eax:ptr LV_DISPINFO
.if [eax].item.pszText != NULL
ListView_SetItemText hwndListView, [eax].item.iItem, 0, [eax].item.pszText
.endif
assume eax:nothing
.endif
.endif
Posted on 2002-09-13 01:33:15 by Four-F