📄 usbdlg.h
字号:
// USBDlg.h : header file
//
#if !defined(AFX_USBDLG_H__84494E31_7DC1_427D_B6CD_E69EE6DCC923__INCLUDED_)
#define AFX_USBDLG_H__84494E31_7DC1_427D_B6CD_E69EE6DCC923__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct
{
unsigned short x;
unsigned short y;
}PointP;
/////////////////////////////////////////////////////////////////////////////
// CUSBDlg dialog
class CUSBDlg : public CDialog
{
// Construction
public:
void AddDataToList(CString str);
CUSBDlg(CWnd* pParent = NULL); // standard constructor
BOOL EzusbShortdataIn(HANDLE hDevice,BYTE *data,DWORD &lenBytes);
// Dialog Data
//{{AFX_DATA(CUSBDlg)
enum { IDD = IDD_USB_DIALOG };
CEdit m_DataDisplay;
CEdit m_DataNum;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUSBDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CUSBDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBeginWork();
afx_msg void OnPause();
afx_msg void OnClose();
virtual void OnOK();
afx_msg void OnClearData();
afx_msg void OnAbout();
afx_msg void OnSaveButton();
afx_msg void OnReplayButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
float m_XOriginScale,m_YOriginScale;
float m_xStart,m_yStart;
float m_xLineStart[800];
CUIntArray m_XLineStart;
int m_xn;
float m_yLineStart[800];
CUIntArray m_YLineStart;
int m_yn;
long m_LeftDis;
long m_RightDis;
long m_UpDis;
long m_DownDis;
long m_LeftRim;
long m_RightRim;
long m_UpRim;
long m_DownRim;
CRect Urect;
CRect Drect;
CRect Lrect;
CRect Rrect;
CRect InnerRect;
CRect TotalRect;
void DrawUDLRrect(CDC *pDC);
void GetUDLRrect();
public:
void DrawCurve (CDC *pDC);
void DrawLab(CDC *pDC);
void GetRectBlc(float xRectStart,float yRectStart,float xRectEnd,float yRectEnd);
void GetBackLines(float xRectStart,float yRectStart,float xRectEnd,float yRectEnd);
void DrawBackLines (CDC *pDC);
void XLPtoXVP(int x,float *X);
void YLPtoYVP(int y,float *Y);
void XVPtoXLP(float x,int *X);
void YVPtoYLP(float y,int *Y);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_USBDLG_H__84494E31_7DC1_427D_B6CD_E69EE6DCC923__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -