Exemplo n.º 1
0
void CEnListCtrl::ClearAll()
{
	if (GetItemCount())
		SetMulSel(0, GetItemCount() - 1, FALSE);

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

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