Example #1
0
	void SortList()
	{
		/* Sorts the hash into the sorted list using an insertion sort */
		so->clear();
		for (StatsIter a = sh->begin(); a != sh->end(); a++)
			InsertOrder(a->first, a->second);
		this->changed = false;
	}
Example #2
0
void COrderManagerDlg::OnNMDblclkListOrdermgrMenus(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
	// TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다.
	CListCtrl* MenuList = (CListCtrl*)this->GetDlgItem(IDC_LIST_ORDERMGR_MENUS);
	int index = pNMItemActivate->iItem;
	if (index != -1)
	{
		InsertOrder(MenuList->GetItemText(index, 0), MenuList->GetItemText(index, 1));
	}
	*pResult = 0;
}