?? seriesportdlg.h
字號:
// SeriesPortDlg.h : header file
//
#if !defined(AFX_SERIESPORTDLG_H__176D8858_6FF2_4DAF_A7B8_36B62FCC41E0__INCLUDED_)
#define AFX_SERIESPORTDLG_H__176D8858_6FF2_4DAF_A7B8_36B62FCC41E0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define CR 0x0d //Carriage Return
#define LF 0x0a //Line feed
#define STX 0x02//ASCI start of string
#define ETX 0x03//ASCI end of string
#define EOT 0x04//ASCI end of transmission
#define ENQ 0x05//
#define ACK 0x06//ASCI acknowledge
#define XpMax 127
#define ErrorXp XpMax-1
#define DUTidPrefix '^'
/////////////////////////////////////////////////////////////////////////////
// CSeriesPortDlg dialog
#include "BkChgEdit.h"
#include "sninputedit.h"
class CSeriesPortDlg : public CDialog
{
// Construction
public:
void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
static DWORD CALLBACK MyStreamInCallback(DWORD dwCookie,LPBYTE pbBuff,LONG cb,LONG *pcb);
void ExPrint(void);
long ASC2toI(char String[ ] );
void KeyforSend1(char send);
char ASC1toI(char ch);
long ASC4toI(char String[]);
void StoreAR( int Xp);
int Pop_string(char stack[ ]);
void ProcessWord();
CSeriesPortDlg(CWnd* pParent = NULL); // standard constructor
HANDLE hCom; //串口句柄
HANDLE hThread;//線程句柄
DWORD dwThreadID; //線程ID
CString str;
char DataBuffer[1024]; //接收數(shù)據(jù)的緩沖區(qū)
int shift;
int ii3;
int ii2;
int ii1;
int ii;
int ii4;
int ii5;
int ii6;
int ii7;
int ii8;
int ii9;
CStatusBar m_statusbar;
CFile file1;
CFile file2;
CFile Tjambfile;
_int64 filehead;
CMenu cMenu;
// Dialog Data
//{{AFX_DATA(CSeriesPortDlg)
enum { IDD = IDD_SERIESPORT_DIALOG };
BkChgEdit m_edt9;
BkChgEdit m_edt8;
BkChgEdit m_edt7;
BkChgEdit m_edt6;
BkChgEdit m_edt5;
BkChgEdit m_edt4;
BkChgEdit m_edt3;
BkChgEdit m_edt2;
CListCtrl m_lis;
CString m_item;
CString m_dutdata;
CString m_machine;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSeriesPortDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSeriesPortDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg void OnRecieveData(WPARAM wParam,LPARAM lParam);
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnCancelMode();
afx_msg void IsoImages();
afx_msg void OnButton6();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnHUBPIN15();
afx_msg void OnClose();
afx_msg void OnTH();
afx_msg void OnTN1();
afx_msg void OnTN4();
afx_msg void OnTN2();
afx_msg void OnTCT();
afx_msg void On255();
afx_msg void On27v();
afx_msg void On3v();
afx_msg void Onring();
afx_msg void On3seconce();
afx_msg void Onpin15();
afx_msg void Onreport();
virtual void OnOK();
afx_msg void OnShowDemen();
afx_msg void OnAddCotent();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
afx_msg void OnSendCmd(WPARAM wParam);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERIESPORTDLG_H__176D8858_6FF2_4DAF_A7B8_36B62FCC41E0__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -