Exemple #1
0
void CEnListCtrl::ClearAll()
{
	if (GetItemCount())
		SetMulSel(0, GetItemCount() - 1, FALSE);

	// if we have the focus then update parent 
	if (GetFocus() == this)
		NotifySelChange();
}
void CEnListCtrl::SelectAll()
{
	if (GetItemCount())
	{
		SetMulSel(0, GetItemCount() - 1, TRUE);
	}

	// if we have the focus then update parent
	if (GetFocus() == this)
	{
		NotifySelChange();
	}
}