#pragma once
|
#include "AlarmMonitor.h"
|
|
|
// CPageAlarm ¶Ô»°¿ò
|
|
class CPageAlarm : public CDialogEx
|
{
|
DECLARE_DYNAMIC(CPageAlarm)
|
|
public:
|
CPageAlarm(CWnd* pParent = NULL); // ±ê×¼¹¹Ô캯Êý
|
virtual ~CPageAlarm();
|
|
private:
|
void InitRxWindow();
|
void Resize();
|
void LoadAlarms();
|
void AddAlarm(CAlarmMonitor* pMonitor, CAlarm* pAlarm);
|
void UpdateAlarm(CAlarmMonitor* pMonitor, CAlarm* pAlarm);
|
|
private:
|
COLORREF m_crBkgnd;
|
HBRUSH m_hbrBkgnd;
|
IObserver* m_pObserver;
|
|
|
// ¶Ô»°¿òÊý¾Ý
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_PAGE_ALARM };
|
#endif
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö
|
|
DECLARE_MESSAGE_MAP()
|
public:
|
virtual BOOL OnInitDialog();
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
afx_msg void OnDestroy();
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
virtual BOOL DestroyWindow();
|
};
|