ListCtrlで複数の選択されているアイテムを知る
int iCnt = 0; int n = pList->GetNextItem(-1, LVNI_ALL|LVNI_SELECTED); while (-1 != n) { TRACE("No.%d was selected\r\n", n); iCnt++; n = pList->GetNextItem(n, LVNI_ALL|LVNI_SELECTED); } TRACE("%d items selected\r\n", iCnt);