Пример #1
0
BOOL CategoryDlg::OnInitDialog(CWindow /*wndFocus*/, LPARAM /*lInitParam*/)
{
	CenterWindow(GetParent());
	DlgResize_Init();
	InitializeLists();
	return TRUE;
}
int main(void)
{   FILE *Calls, *Results, *DelorChCall, *Searchcalls, *Searchresults;
	InitializeLists();
    PopulateLists(Calls);
    ShowList(Results, Received, 1);
    ShowList(Results, Called, 1);
    ShowList(Results, UnAnswered, 1);
    ShowList(Results, Received, -1);
    ShowList(Results, Called, -1);
    ShowList(Results, UnAnswered, -1);
    DeleteOrChangeCalls(DelorChCall);
    ShowList(Results, Received, 1);
    ShowList(Results, Called, 1);
    ShowList(Results, UnAnswered, 1);
    ShowList(Results, Received, -1);
    ShowList(Results, Called, -1);
    ShowList(Results, UnAnswered, -1);
    SearchCallList(Searchcalls,Searchresults);
    DestroyLists();

  system("PAUSE");
  return 0;
}
Пример #3
0
void CategoryDlg::OnBtnExclude(UINT /*uNotifyCode*/, int nID, CWindow /*wndCtl*/)
{
	UpdateSelectedItems(CListBox(GetDlgItem(IDC_INCLUDE_LIST)), false);
	InitializeLists();
}
Пример #4
0
void CategoryDlg::OnBtnNone(UINT /*uNotifyCode*/, int nID, CWindow /*wndCtl*/)
{
	for (auto it = m_categories.begin(); it != m_categories.end(); ++it)
		it->second = false;
	InitializeLists();
}
Пример #5
0
void CategoryDlg::OnExcludeDblClick(UINT uNotifyCode, int nID, CWindow wndCtl)
{
	UpdateSelectedItem(CListBox(wndCtl), true);
	InitializeLists();
}