⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usbhostsampledlg.h

📁 USB2.0原理与工程开发光盘(第二版)
💻 H
字号:
// USBHOSTSAMPLEDlg.h : header file
//

#if !defined(AFX_USBHOSTSAMPLEDLG_H__850591A2_AD3F_426E_811F_FCF61018A4E8__INCLUDED_)
#define AFX_USBHOSTSAMPLEDLG_H__850591A2_AD3F_426E_811F_FCF61018A4E8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CUSBHOSTSAMPLEDlg dialog

class CUSBHOSTSAMPLEDlg : public CDialog
{
// Construction
public:
	CUSBHOSTSAMPLEDlg(CWnd* pParent = NULL);	// standard constructor
    ~CUSBHOSTSAMPLEDlg();
	
	char DeviceName[64];	
	void OnDrawPicture(WPARAM wParam,LPARAM lParam);
	BOOLEAN UsbOpenDriver (HANDLE *phDeviceHandle, PCHAR devname);

// Dialog Data
	//{{AFX_DATA(CUSBHOSTSAMPLEDlg)
	enum { IDD = IDD_USBHOSTSAMPLE_DIALOG };
	CComboBox	m_LastChannel;
	CComboBox	m_FirstChannel;
	CEdit	m_Edit_Freq;
	CSliderCtrl	m_SliderFreq;
	CListBox	m_UsbList;
	CStatic	m_Pictrue;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUSBHOSTSAMPLEDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	POINT m_PointList[8][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[9];
    int m_xn;
	float m_yLineStart[9];
	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(CUSBHOSTSAMPLEDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStartButton();
	afx_msg void OnConfigButton();
	afx_msg void OnDeviceButton();
	afx_msg void OnStopButton();
	afx_msg void OnExitButton();
	afx_msg void OnCustomdrawSliderfreq(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnAboutButton();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_USBHOSTSAMPLEDLG_H__850591A2_AD3F_426E_811F_FCF61018A4E8__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -