#pragma once
|
#include "CBaseView.h"
|
#include "PLC.h"
|
|
|
class CPlcView :public CBaseView
|
{
|
DECLARE_DYNAMIC(CPlcView)
|
|
public:
|
CPlcView(CWnd* pParent = nullptr);
|
~CPlcView();
|
|
public:
|
virtual void SetContext(void* pContext);
|
|
private:
|
void InitRxWindows();
|
void Resize();
|
|
private:
|
COLORREF m_crBkgnd;
|
HBRUSH m_hbrBkgnd;
|
IObserver* m_pObserver;
|
CPLC* m_pPlc;
|
|
|
// ¶Ô»°¿òÊý¾Ý
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_VIEW_PLC};
|
#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);
|
};
|