LONG CuDlgSecurityAuditingDerived::OnButton2(WPARAM wParam, LPARAM lParam) { TRACE0 ("CuDlgSecurityAuditingDerived::OnButton2...\n"); UINT nState = 0; int iIndex = -1; int i, nCount = m_ListCtrl.GetItemCount(); for (i=0; i<nCount; i++) { nState = m_ListCtrl.GetItemState (i, LVIS_SELECTED); if (nState & LVIS_SELECTED) { iIndex = i; break; } } if (iIndex == -1) return 0; m_ListCtrl.HideProperty(); VCBF_GenericDerivedRecalculate (m_ListCtrl, iIndex); return 0; }
LONG CuDlgDbmsCacheDerived::OnButton2(UINT wParam, LONG lParam) { TRACE0 ("CuDlgDbmsCacheDerived::OnButton2.(Recalculate)..\n"); UINT nState = 0; int iIndex = -1; int i, nCount = m_ListCtrl.GetItemCount(); for (i=0; i<nCount; i++) { nState = m_ListCtrl.GetItemState (i, LVIS_SELECTED); if (nState & LVIS_SELECTED) { iIndex = i; break; } } if (iIndex == -1) return 0; m_ListCtrl.HideProperty(); VCBF_GenericDerivedRecalculate (m_ListCtrl, iIndex, TRUE); return 0; }