All pastes #423723 Raw Edit

psiche

public c v1 · immutable
·published 2007-04-04 11:33 UTC
rendered paste body
if((((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);