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.
TwoLaserHead-PushJig/LaiPuLaser/DlgTest.h

114 lines
4.0 KiB
C

#pragma once
#include "MyBttom.h"
// CDlgTest <20>Ի<EFBFBD><D4BB><EFBFBD>
#include "DlgPane.h"
#ifdef __TBAR_CODE__
#include "tbarcode51.h"
#endif
#include "afxwin.h"
class CDlgTest : public CDlgPane
{
DECLARE_DYNAMIC(CDlgTest)
public:
CDlgTest(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
virtual ~CDlgTest();
virtual UINT GetIDD(){return CDlgTest::IDD;};
void SetCmdEditFocus();
#ifdef __TBAR_CODE__
CTbarcode51 &GetTbarcode51(){return m_Tbarcode51;};
#endif
int GetInput1();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_TEST_DLG };
private:
bool CheckPortNum();
void SetCaptionInputStr();
void ResetCmdInputStr();
private:
int m_PortNum;//<2F><><EFBFBD>Ե<EFBFBD>pci <20>˿ں<CBBF>
CString m_PortState;//<2F>˿<EFBFBD>״̬
double m_Input1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1
//<2F><><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>
int m_CommPort;//<2F><><EFBFBD>ں<EFBFBD>
CString m_CommStr;//<2F><><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD><EFBFBD>
CString m_CommRev;//<2F><><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int m_MarkTimes;//<2F>ӹ<EFBFBD><D3B9><EFBFBD><EFBFBD><EFBFBD>
int m_CyclicTimes;//ѭ<><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CEdit m_CmdInputEdit;
CString m_CmdInputStr;//cmd <20><><EFBFBD><EFBFBD>
#ifdef __TBAR_CODE__
CTbarcode51 m_Tbarcode51;//<2F><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD>
#endif
CMyBttom m_SendToComBtn;
CMyBttom m_OpenPciPortBtn;
CMyBttom m_ClosePciPortBtn;
CMyBttom m_ReadPciPortBtn;
CMyBttom m_Test1Btn;
CMyBttom m_Test2Btn;
CMyBttom m_ObjCompSetBtn;
CMyBttom m_MarkAreaSetBtn;
CMyBttom m_CreatObjBtn;
CMyBttom m_ReadDxfBtn;
CMyBttom m_ReadMakBtn;
CMyBttom m_ReadObjBtn;
CMyBttom m_SaveObjBtn;
CMyBttom m_ReadPltBtn;
CMyBttom m_PciMarkBtn;
CMyBttom m_PciAreaMarkBtn;
CMyBttom m_CutByPlatformBtn;
CMyBttom m_CameraCatchBtn;
CMyBttom m_SetMarkBtn;
CMyBttom m_CameraCatchMarkBtn;
CMyBttom m_ObjToCCDModeBtn;
CMyBttom m_CreatVisionDataBtn;
CMyBttom m_CopyBackBtn;
CMyBttom m_AdjustProductPosBtn;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
afx_msg BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedTestBtn1();
afx_msg void OnBnClickedOpenPort();
afx_msg void OnBnClickedClosePort();
afx_msg void OnBnClickedTestBtn2();
afx_msg void OnBnClickedReadPort();
afx_msg void OnBnClickedWriteToComm();
afx_msg BOOL PreTranslateMessage(MSG* pMsg);
afx_msg void OnEnChangeEdit();
afx_msg BOOL OnMouseWheel(UINT nFlags,short zDelta,CPoint pt);
afx_msg void OnBnClickedPlatformIni();
afx_msg void OnBnClickedMarkAreaDlg();
afx_msg void OnBnClickedObjCompDlg();
afx_msg void OnBnClickedCreatObjByLayerShape();
afx_msg void OnBnClickedReadDxfFile();
afx_msg void OnBnClickedReadPltFile();
afx_msg void OnBnClickedReadObjFile();
afx_msg void OnBnClickedSaveObjFile();
afx_msg void OnBnClickedPciMark();
afx_msg void OnBnClickedPciMultiAreaMark();
afx_msg void OnBnClickedCutByPlatfrom();
afx_msg void OnBnClickedCcdCatch();
afx_msg void OnBnClickedCcdCatchTwoMark();
afx_msg void OnBnClickedObjToCcdMode();
afx_msg void OnBnClickedSetMarkPt();
afx_msg void OnBnClickedCreatVisionData();
afx_msg void OnBnClickedOpenMak();
afx_msg void OnBnClickedAdjustProductPos();
CString m_IP;
int m_port;
afx_msg void OnBnClickedConnect();
afx_msg void OnBnClickedOpenFile();
afx_msg void OnBnClickedTransProduct();
afx_msg void OnBnClickedStartWork();
afx_msg void OnBnClickedinitPlatform();
afx_msg void OnBnClickedCopyGridData();
};