添加LVN_ITEMCHANGED事件

void CResultPicDlg::OnItemchangedTotalshownList(NMHDR *pNMHDR, LRESULT *pResult)
{
    LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
    // TODO: Add your control notification handler code here
    NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
    CString c_str;
    if(m_totalShown_list.GetCheck(pNMListView->iItem)==1)
    {
        AfxMessageBox("选上");
    }
    else
        AfxMessageBox("没选上");
    

    *pResult = 0;
    *pResult = 0;
}

 

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-11-08
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案