|
// ServoDlg.h : Í·Îļþ
|
//
|
|
#pragma once
|
#include "BlButton.h"
|
#include "PageLog.h"
|
#include "PageAlarm.h"
|
#include "PageRecipe.h"
|
#include "TerminalDisplayDlg.h"
|
#include "CPanelMaster.h"
|
#include "CPanelEquipment.h"
|
#include "CPanelAttributes.h"
|
#include "CPageGraph1.h"
|
#include "CPageGraph2.h"
|
|
|
// CServoDlg ¶Ô»°¿ò
|
class CServoDlg : public CDialogEx
|
{
|
// ¹¹Ôì
|
public:
|
CServoDlg(CWnd* pParent = NULL); // ±ê×¼¹¹Ô캯Êý
|
|
|
public:
|
void ShowTerminalText(const char* pszText, unsigned int duration = -1);
|
|
private:
|
void InitRxWindows();
|
void Resize();
|
void ShowChildPage(int index);
|
|
|
private:
|
IObserver* m_pObserver;
|
CTerminalDisplayDlg* m_pTerminalDisplayDlg;
|
CPageGraph1* m_pPageGraph1;
|
CPageGraph2* m_pPageGraph2;
|
CPageRecipe* m_pPageRecipe;
|
CPageAlarm* m_pPageAlarm;
|
CPageLog* m_pPageLog;
|
|
|
// ¶Ô»°¿òÊý¾Ý
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_SERVO_DIALOG };
|
#endif
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö
|
|
|
// ʵÏÖ
|
protected:
|
HICON m_hIcon;
|
COLORREF m_crBkgnd;
|
HBRUSH m_hbrBkgnd;
|
CPanelMaster* m_pPanelMaster;
|
CPanelEquipment* m_pPanelEquipment;
|
CPanelAttributes* m_pPanelAttributes;
|
|
// Éú³ÉµÄÏûÏ¢Ó³É亯Êý
|
virtual BOOL OnInitDialog();
|
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
afx_msg void OnPaint();
|
afx_msg HCURSOR OnQueryDragIcon();
|
DECLARE_MESSAGE_MAP()
|
public:
|
afx_msg void OnBnClickedOk();
|
afx_msg void OnBnClickedCancel();
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
afx_msg void OnDestroy();
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
afx_msg void OnClose();
|
afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
|
afx_msg void OnMove(int x, int y);
|
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
|
afx_msg void OnMenuFileSettings();
|
afx_msg void OnUpdateMenuFileSettings(CCmdUI* pCmdUI);
|
afx_msg void OnMenuFileSecsTest();
|
afx_msg void OnUpdateMenuFileSecsTest(CCmdUI* pCmdUI);
|
afx_msg void OnMenuFileExit();
|
afx_msg void OnUpdateMenuFileExit(CCmdUI* pCmdUI);
|
afx_msg void OnMenuTestMessageSet();
|
afx_msg void OnUpdateMenuTestMessageSet(CCmdUI* pCmdUI);
|
afx_msg void OnMenuTestMessageClear();
|
afx_msg void OnUpdateMenuTestMessageClear(CCmdUI* pCmdUI);
|
afx_msg void OnMenuHelpAbout();
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
afx_msg LRESULT OnPanelResize(WPARAM wParam, LPARAM lParam);
|
afx_msg void OnTabSelChanged(NMHDR* nmhdr, LRESULT* result);
|
};
|