LRESULT CLeftView::OnItemChanged(NMLISTVIEW* pnmlv)
{
if ((pnmlv->uChanged & LVIF_STATE) &&
(pnmlv->uNewState & LVIS_SELECTED)) {
m_pFormView->SetForm(pnmlv->iItem);
}
return 0;
}
uNewState
Specifies the new item state. This member is zero for notification messages that do not use it.
uOldState
Specifies the old item state. This member is zero for notification messages that do not use it.
uChanged
Set of flags that indicate the item attributes that have changed. This member is zero for notification messages that do not use it. Otherwise, it can have the same values as the mask member of the LVITEM structure.