alog
{: (char * DialogName, CWnd * Owner): ((LPCTSTR) DialogName, Owner) {}; _msg void OnButtonShow (); _MESSAGE_MAP ()
}; _MESSAGE_MAP (ShowEventsInInterval, CDialog) _COMMAND (IDShow, OnButtonShow) _MESSAGE_MAP ()
_msg void ShowEventsInInterval :: OnButtonShow ()
{Y, M, D, H, Min, S, buf; int i = 0; * NeedFont = new CFont; * list = (CListBox *) (this-> GetDlgItem (IDC_LIST1) );> CreatePointFont (80, L "Courier i (Min), _ttoi (S), "", "");> ResetContent (); (i = 0; i
{(storage [i]> temp1 && temp2> storage [i])
{= storage [i]. GetTime ();. Format (_T ("%-24.24s% 4.4d /%-2.2d /%-2.2d /%-2.2d /% -2.2d /%-2.2d
}
}
}
// ===== клас вікна виведення минулих подій спочатку ======================= ShowEventsFromBegining: public CDialog p>
{: (char * DialogName, CWnd * Owner): ((LPCTSTR) DialogName, Owner) {}; _msg void OnButtonShow (); _MESSAGE_MAP ()
}; _MESSAGE_MAP (ShowEventsFromBegining, CDialog) _COMMAND (IDShow, OnButtonShow) _MESSAGE_MAP () _msg void ShowEventsFromBegining :: OnButtonShow ()
{st; int *) (This-> GetDlgItem (IDC_LIST2)); * NeedFont = new CFont;> CreatePointFont (80, L "Courier New"); (IDC_LIST2) -> SetFont (NeedFont);> ResetContent (); ( i = 0; i
{(temp> storage [i])
{= storage [i]. GetTime ();. Format (_T ("%-24.24s% 4.4d /%-2.2d /%-2.2d /%-2.2d /% -2.2d /%-2.2d
}
}
}
// ===== клас перевірки наявності подій у заданому інтервалі =================== CheckInInterval: public CDialog
{: (char * DialogName, CWnd * Owner): ((LPCTSTR) DialogName, Owner) {}; _msg void OnButtonCheck (); _MESSAGE_MAP ()
}; _MESSAGE_MAP (CheckInInterval, CDialog) _COMMAND (IDCheck, OnButtonCheck) _MESSAGE_MAP () _msg void CheckInInterval :: OnButtonCheck ()
{Y, M, D, H, Min, S, message; int
{(storage [i]> temp1 && temp2> storage [i])
{+ +;
}
}. Format (L "Number of events in this inteval:% d", n); (message, L "Nunber of events");
}
// ===== клас перевірки наявності подій в заданий час ======================= CheckInTime: public CDialog
{: (char * DialogName, CWnd * Owner): ((LPCTSTR) DialogName, Owner) {}; _msg void OnButtonCheck (); _MESSAGE_MAP ()
}; _MESSAGE_MAP (CheckInTime, CDialog) _COMMAND (IDCheck, OnButtonCheck) _MESSAGE_MAP () _msg void CheckInTime :: OnButtonCheck ()