ListCtrl控件,编辑完某一项后,相应什么消息啊?
 我想在那个消息里判断修改后的数据是否是合法的.

解决方案 »

  1.   

    LVN_ENDLABELEDIT Notification--------------------------------------------------------------------------------Notifies a list-view control's parent window about the end of label editing for an item. This notification message is sent in the form of a WM_NOTIFY message. 
      

  2.   

    我在LVN_ENDLABELEDIT 的事件消息OnEndLabelEdit()里边,向主窗口发送了消息,
    GetParent()->SendMessage(WM_VALIDATE, GetDlgCtrlID(), (LPARAM)pDispInfo); 
    在消息处理函数中,加上了这些语句:
    LV_DISPINFO* pDispInfo = (LV_DISPINFO*)lParam;
    // TODO: Add your control notification handler code here
        int nItem;
    POSITION pos = m_ListCtrl.GetFirstSelectedItemPosition();
    if(pos)
    {
    nItem = m_ListCtrl.GetNextSelectedItem(pos);
    CString strLoopLight;
    strLoopLight = m_ListCtrl.GetItemText(nItem,2);
             }
    ListCtrl的单元格编辑完后,就到了这里.
    我原本想实现的是判断修改后的数据是否合法,可是现在得到的数据总是修改以前的,修改以后的在这里得不到.不知道是怎么回事.
    请各位帮我解答一下啊.