CListCtrl: subitem edit problem
-
I have CListCtrl(REPORT) which uses the LVS_EDITLABELS style. Have can I edit subitem of the list?
-
You have tried with: BOOL SetItemText( int nItem, int nSubItem, LPCTSTR lpszText ); Too many plans make the health badly!!
-
I have CListCtrl(REPORT) which uses the LVS_EDITLABELS style. Have can I edit subitem of the list?
wrote smth like this..... void CGraphDataEdtDlg::OnBeginlabeledit(NMHDR *pNMHDR, LRESULT *pResult) { NMLVDISPINFO *pDispInfo = reinterpret_cast(pNMHDR); if (m_subitem) { CEdit *edit=m_list.GetEditControl(); if (edit!=NULL) { CRect rtSubItem; m_list.GetSubItemRect(m_item,m_subitem,LVIR_BOUNDS ,rtSubItem); edit->MoveWindow(rtSubItem); CString str; str.Format(_T("left top(%d,%d)\nright bot(%d,%d)"),rtSubItem.left,rtSubItem.top,rtSubItem.right,rtSubItem.bottom); AfxMessageBox(str); edit->SetWindowText(m_list.GetItemText(m_item,m_subitem)); } } *pResult = 0; } call this function with m_list.EditLabel(item); as result my editcontroler always covers 0-subitem of item-raw....
-
I have CListCtrl(REPORT) which uses the LVS_EDITLABELS style. Have can I edit subitem of the list?
Whats problem with
LVN_ENDLABELEDIT
_**
**_
whitesky