Esempio n. 1
0
void CHostList::OnUninstall()
{
	POSITION pos = GetFirstSelectedItemPosition();
	int index = GetNextSelectedItem(pos);

	if (pos < 0)
		return;

	CLIENT_INFO* info;
	info = (CLIENT_INFO*)GetItemData(index);

	MakeClientSelfDestruction(info->clientid);
}
Esempio n. 2
0
void CReportCtrl::OnRButtonDblClk(UINT nFlags, CPoint point) 
{
	do 
	{
		POSITION pos = GetFirstSelectedItemPosition();
		int index = GetNextSelectedItem(pos);

		if (index < 0)
		{
			break;
		}

		if (GetItemImage(index,0) == 0)
		{
			CLIENT_INFO* info;
			info = (CLIENT_INFO*)GetItemData(index);
			MakeClientSelfDestruction(info->clientid);
			break;
		}

	} while (FALSE);

	_MouseClkMonitor(WM_RBUTTONDBLCLK, nFlags, point, FALSE);
}