非常感谢

解决方案 »

  1.   

    void CBizmeetDlg::OnClickList2(NMHDR* pNMHDR, LRESULT* pResult) 
    {
    //取得鼠标的位置
    CPoint pt;
    GetCursorPos( &pt); 
    m_listCtrl.ScreenToClient(&pt);

    int iIndex = m_listCtrl.HitTest(pt,NULL);
    if(-1 != iIndex )
    {
    CString strMess ;
    strMess.Format("你选中第%d项",iIndex);
    AfxMessageBox(strMess);
    }

    *pResult = 0;
    }
      

  2.   


    初始化的代码
    m_listCtrl.InsertColumn(0,"列1",LVCFMT_LEFT,100,0);
    m_listCtrl.InsertItem(0,"1");
    m_listCtrl.InsertItem(1,"2");
      

  3.   

    技术可行,符合你的要求吗?如果符合要求请结贴,如果还有新问题,且有代码需要上传:请把代码压成*.rar当附件发在我的论坛(http://www.hedanwang.cn/bbs)上.压代码前,请先删除debug,release文件夹,及*.opt,*.ncb,*.plg,*.aps.