int count = (int)::SendMessage(hWnd4, LVM_GETITEMCOUNT, (WPARAM)0, (LPARAM)0);//获取项目总数 /* 参数4和参数4 必须为0 返回值:返回项目总数 */ str.Format(_T("项目总数=%d\r\n"),count); OutputDebugString(str);
标签:count,MFC,CListCtrl,项目,int,总数,SendMessage From: https://www.cnblogs.com/liming19680104/p/17371738.html