CListCtr中在复选框中勾选一行,就让整行处于选中状态,怎么做啊?各位!thanks!

解决方案 »

  1.   

    m_list.SetExtendedStyle(m_list.GetExtendedStyle() | LVS_EX_FULLROWSELECT);
      

  2.   

    m_ListCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT); 
    这样就行了
      

  3.   

    响应NM_CLICK的事件,m_list.SetItemState(nItem,LVIS_SELECTED,LVIS_SELECTED);
      

  4.   

    问题是我怎么样知道当前勾选的 : Item?
     实际要解决的问题是: 当我勾选一行,如何马上获取当前勾选的行的Index??然后我就设置该行为满行选中状态。 注: 我是勾选, 不是选中条目。
      

  5.   

    handle LVN_ITENCHANGED and compare the old state and the new state. Select the row if the state image index has been changed.
      

  6.   

    对的
    响应LVN_ITENCHANGED,根据其uOldState和uNewState来判断checkbox的状态
      

  7.   

    http://community.csdn.net/Expert/topic/4485/4485046.xml?temp=.3875696 看看这个和你应该一样把