Re: Question about CListCtrl extended style - LVS_EX_CHECKBOXES
My version just selects and unselects the items when the user checks and
unchecks the check box, it doesn't do anything when the user changes the
selection of the item.
I thought that's what the op wanted.
AliR.
"Tom Serface" <tserface@msn.com> wrote in message
news:eYx1awtyGHA.5048@TK2MSFTNGP05.phx.gbl...
So, Ali, are you checking the item when they select it in the list rather
than just on the check box? That sounds useful. Thanks.
Tom
"AliR" <AliR@online.nospam> wrote in message
news:44f34123$0$15180$a8266bb1@reader.corenews.com...
And this is what I have to select or unselect items when they are either
checked or unchecked
void CCheckListControl::OnLvnItemchanged(NMHDR *pNMHDR, LRESULT
*pResult)
{
LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
// TODO: Add your control notification handler code here
*pResult = 0;
SetItemState(pNMLV->iItem,GetCheck(pNMLV->iItem) ? LVIS_SELECTED :
0,LVIS_SELECTED);
}
AliR.