You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.8 KiB
C++

#pragma once
#include "MyDlgView.h"
#include "MyPictrueBttom.h"
#include "MyBttom.h"
#include "LabelEx.h"
#include "CommPortMgr.h"
#include "afxwin.h"
class CDlgChildPCS : public CMyDlgView
{
DECLARE_DYNAMIC(CDlgChildPCS)
public:
CDlgChildPCS(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgChildPCS();
virtual void ChangeItemState();
virtual void SetTextCtrlItemID();
virtual void UpdateLanguageTxt();//切换语言显示
virtual void UpdateInfoByTimer();
void InitLoadPortList();
void TriggerOnPaint();
void CreatPJobDataByTimer();
// 对话框数据
enum { IDD = IDD_CHILD_PCS };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
void OnTimer(UINT nIDEvent);
void OnDrawListPort1( NMHDR* pNMHDR, LRESULT* pResult );
void OnDrawListPort2( NMHDR* pNMHDR, LRESULT* pResult );
DECLARE_MESSAGE_MAP()
private:
void UpdateInfoExt();
void UpdateMFCInfoExt();
void UpdateTxtInfo();
void UpdateBtnState();
void UpdateWaferPosInfo();
void InitChildArea();
void SetChildViewName(CString s);
private:
HICON m_hIcon;
CListCtrl m_PortList1;
CListCtrl m_PortList2;
bool m_bFirstOpen;//第一次打开
int m_CurUpdateTimes;//当前的更新次数(用来控制一些刷新)
CLabelEx m_BmpPChuck;
CLabelEx m_BmpRobotArm1;
CLabelEx m_BmpRobotArm2;
CLabelEx m_BmpRobotAligner;
CLabelEx m_BmpPort1;
CLabelEx m_BmpPort2;
CMyBottom m_ColorBtn0;
CMyBottom m_ColorBtn1;
CMyBottom m_ColorBtn2;
CMyBottom m_ColorBtn3;
CMyBottom m_ColorBtn4;
CMyBottom m_ColorBtn5;
CMyBottom m_ColorBtn6;
CMyBottom m_ColorBtn7;
CMyBottom m_LoadPort1Btn;
CMyBottom m_LoadPort2Btn;
CMyBottom m_AnnealChBtn;
CMyBottom m_RobotArm1Btn;
CMyBottom m_RobotArm2Btn;
CMyBottom m_RobotAlignerBtn;
CMyBottom m_OHT_TestBtn;
CMyBottom m_PCSChildViewNameBtn;
CMyBottom m_Port1WaferBtn;
CMyBottom m_Port2WaferBtn;
CMyBottom m_PcsStartBtn;
CMyBottom m_PcsPauseBtn;
CMyBottom m_PcsStopBtn;
CMyBottom m_PcsAbortBtn;
CMyBottom m_JobInfoBtn;
CMyPictrueBttom m_PcsRobotBtn;
bool m_bPCSAutomationWorking;
CMyBottom m_Arm1SensorBtn;
CMyBottom m_Arm2SensorBtn;
CMyBottom m_StageVaccumBtn;
CMyBottom m_StageVaccumPoBtn;
CMyBottom m_StageThimbleBtn;
CMyBottom m_StagePostionSensorBtn;
CMyBottom m_Port1E84Btn;
CMyBottom m_Port2E84Btn;
CMyBottom m_N2SignalBtn;
CMyBottom m_Cassette1Layer;
CMyBottom m_Cassette2Layer;
public:
afx_msg void OnNMClickLoadportList1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMClickLoadportList2(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedPcsAnnealChBtn();
afx_msg void OnBnClickedLoadport1Btn();
afx_msg void OnBnClickedLoadport2Btn();
afx_msg void OnBnClickedPcsRobotBtn();
afx_msg void OnBnClickedPcsChildViewNameBtn();
afx_msg void OnBnClickedPcsPort1WaferBtn();
afx_msg void OnBnClickedPcsPort2WaferBtn();
afx_msg void OnBnClickedPcsStartBtn();
afx_msg void OnBnClickedPcsStopBtn();
afx_msg void OnBnClickedPcsAbortBtn();
afx_msg void OnStnClickedStaticPChuck();
afx_msg void OnStnClickedStaticAligner();
afx_msg void OnStnClickedStaticRobotArm2();
afx_msg void OnStnClickedStaticRobotArm1();
afx_msg void OnStnClickedStaticPort2();
afx_msg void OnStnClickedStaticPort1();
afx_msg void OnBnClickedPcsArm1Btn();
afx_msg void OnBnClickedPcsArm2Btn();
afx_msg void OnBnClickedAlignerBtn();
afx_msg void OnBnClickedJobViewBtn();
afx_msg void OnBnClickedOhtBtn();
afx_msg void OnBnClickedPcsPauseBtn();
afx_msg void OnBnClickedPort2layerchange();
afx_msg void OnBnClickedPort1layerchange();
};