📄 usbhostwavedlg.h
字号:
// USBHOSTWAVEDlg.h : header file
//
#if !defined(AFX_USBHOSTWAVEDLG_H__D1498E20_F410_434F_9F56_C9A6533286AB__INCLUDED_)
#define AFX_USBHOSTWAVEDLG_H__D1498E20_F410_434F_9F56_C9A6533286AB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef LONG USBD_STATUS;
typedef struct _USBD_ISO_PACKET_DESCRIPTOR {
ULONG Offset;
ULONG Length;
USBD_STATUS Status;
} USBD_ISO_PACKET_DESCRIPTOR, *PUSBD_ISO_PACKET_DESCRIPTOR;
/////////////////////////////////////////////////////////////////////////////
// CUSBHOSTWAVEDlg dialog
class CUSBHOSTWAVEDlg : public CDialog
{
// Construction
public:
CUSBHOSTWAVEDlg(CWnd* pParent = NULL); // standard constructor
~CUSBHOSTWAVEDlg();
char DeviceName[64];
void OnDrawPicture(WPARAM wParam,LPARAM lParam);
BOOLEAN UsbOpenDriver (HANDLE *phDeviceHandle, PCHAR devname);
BOOLEAN ChangeWave();
// Dialog Data
//{{AFX_DATA(CUSBHOSTWAVEDlg)
enum { IDD = IDD_USBHOSTWAVE_DIALOG };
CListBox m_UsbList;
CSliderCtrl m_SliderFreq;
CSliderCtrl m_SliderAmp;
CEdit m_Edit_Freq;
CEdit m_Edit_Amp;
CStatic m_Pictrue;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUSBHOSTWAVEDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
POINT m_PointList[1024];
CPen CurvePen;
CPen BackLinePen;
CFont LabelFont;
CFont TitleFont;
long m_LeftRim;
long m_RightRim;
long m_UpRim;
long m_DownRim;
long m_InnerUHScreen;
long m_InnerDHScreen;
long m_InnerLWScreen;
long m_InnerRWScreen;
CRect Urect;
CRect Drect;
CRect Lrect;
CRect Rrect;
CRect InnerRect;
CRect TotalRect;
float m_XOriginScale,m_YOriginScale;
float m_xLineStart[10];
int m_xn;
float m_yLineStart[8];
int m_yn;
float m_xStart,m_yStart;
void GetUDLRrect();
void GetRectBlc(float xRectStart,float yRectStart,float xRectEnd,float yRectEnd);
void DrawUDLRrect(CDC *pDC);
void DrawBackLines (CDC *pDC);
void DrawLab(CDC *pDC);
void DrawCurve (CDC *pDC);
// Generated message map functions
//{{AFX_MSG(CUSBHOSTWAVEDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnPhackleButton();
afx_msg void OnNhackleButton();
afx_msg void OnTriangleButton();
afx_msg void OnSquareButton();
afx_msg void OnSinButton();
afx_msg void OnCustomdrawSliderfreq(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnCustomdrawSlideramp(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDeviceButton();
afx_msg void OnConfigButton();
afx_msg void OnInterfaceButton();
afx_msg void OnEndpointButton();
afx_msg void OnStringButton();
afx_msg void OnFrameButton();
afx_msg void OnButtonFreq();
afx_msg void OnButtonAmp();
afx_msg void OnSendButton();
afx_msg void OnEndButton();
afx_msg void OnExitButton();
afx_msg void OnClearButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_USBHOSTWAVEDLG_H__D1498E20_F410_434F_9F56_C9A6533286AB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -