psiche
public c v1 · immutableif((((LPNMHDR)lParam)->code == LVN_BEGINLABELEDIT )) { hEdit = ListView_GetEditControl(hList); } if((((LPNMHDR)lParam)->code == LVN_ENDLABELEDIT )) { int iIndex=0; wchar_t buff[255]=L""; iIndex=SendMessage(hList,LVM_GETNEXTITEM,-1,LVNI_FOCUSED); LvItem.iSubItem=0; LvItem.pszText=buff; GetWindowText(hEdit, buff, sizeof(buff)); stable[iIndex]->number= _wtoi(buff); SendMessage(hList,LVM_SETITEMTEXT,(WPARAM)iIndex,(LPARAM)&LvItem);