www.pudn.com > CYDEMO.zip > CYDEMODlg.h, change:2012-05-07,size:4485b


// CYDEMODlg.h : header file 
// 
 
#if !defined(AFX_CYDEMODLG_H__9DF09C17_465C_45DC_A530_B617C257A8D5__INCLUDED_) 
#define AFX_CYDEMODLG_H__9DF09C17_465C_45DC_A530_B617C257A8D5__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
//#include "myezusb.h" 
 
//测试线程参数 
class CCYDEMODlg; 
 
struct CThreadParam { 
	HANDLE hThread; 
	CCYDEMODlg* testDlg; 
	BOOLEAN bInThread; 
	BOOLEAN bUpdate; 
//		ISO_TRANSFER_CONTROL IsoControl; 
//		unsigned char * pcIoBuffer; 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
// CCYDEMODlg dialog 
 
class CCYDEMODlg : public CDialog 
{ 
// Construction 
public: 
	CCYDEMODlg(CWnd* pParent = NULL);	// standard constructor 
 
//	BOOL StopTest; 
	CThreadParam m_BulkTest;//线程参数 
 
// Dialog Data 
	//{{AFX_DATA(CCYDEMODlg) 
	enum { IDD = IDD_CYDEMO_DIALOG }; 
	CComboBox	m_ctrlBaudRate; 
	CButton	m_ctrlUsbToUart; 
	CButton	m_ctrlIoTest; 
	CButton	m_ctrlIsoTest; 
	CEdit	m_ctrlTestDisplay; 
	CButton	m_ctrlSpeedTest; 
	CButton	m_ctrlThreadTest; 
	CString	m_strName; 
	CString	m_strTestDisplay; 
	DWORD	m_TestBytes; 
	CString	m_strFileName; 
	BYTE	m_UartRx; 
	BYTE	m_UartTx; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CCYDEMODlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	 
//	void CCYDEMODlg::StayOnTop() const; 
//	void CCYDEMODlg::DrawView(); 
//	HBITMAP CCYDEMODlg::CreateGradientBMP(HDC hDC, COLORREF cl1, COLORREF cl2, int nWidth, int nHeight, int nDir, int nNumColors); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	int m_FifoWrRdNum; 
 
	BOOL OnDownloadFirmware(LPTSTR strdownloadfile,BOOL displaycharen); 
	BOOL OnSetInDir(); 
	BOOL OnSetOutDir(); 
//	void CCYDEMODlg::StayOnTop() const; 
	void DrawView(); 
	HBITMAP CreateGradientBMP(HDC hDC, COLORREF cl1, COLORREF cl2, int nWidth, int nHeight, int nDir, int nNumColors); 
 
//ON DRAW/////////////////////////////////////////// 
	LONG Inner_Left; 
	LONG Inner_Right; 
	LONG Inner_Top; 
	LONG Inner_Bottom; 
	LONG Drawdatabuf[1024]; 
	LONG data_max; 
	LONG data_min; 
	LONG x_max; 
	LONG y_max; 
	void OnDraw(); 
	void DrawWave(CDC *pDC);	 
	void DrawBasic(CDC * pDC,CRect &rect); 
	void DrawInner(CDC * pDC,CRect &rect); 
	void DrawGrid(CDC * pDC,CRect &rect); 
	void DrawData(CDC * pDC,CRect &rect); 
//////////////////////////////////////////////////// 
 
//GPIF AND FIFO TEST///////////////////////////////////////// 
	void OnWrtest(LONG nTestCount); 
	void OnRdtest(LONG nTestCount); 
/////////////////////////////////////////////////// 
 
	// Generated message map functions 
	//{{AFX_MSG(CCYDEMODlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnButtonThreadtest(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnButtonClear(); 
	afx_msg void OnButtonWrSpeedtest(); 
	afx_msg void OnButtonRdSpeedtest(); 
	afx_msg void OnButtonPort(); 
	afx_msg void OnButtonMcureset(); 
	afx_msg void OnButtonMculock(); 
	afx_msg void OnButtonDownload(); 
	afx_msg void OnButtonFrame(); 
	afx_msg void OnButtonGetstring(); 
	afx_msg void OnButtonGetport(); 
	afx_msg void OnButtonGetinterface(); 
	afx_msg void OnButtonGetconfig(); 
	afx_msg void OnButtonGetdevice(); 
	afx_msg void OnButtonOpendevice(); 
	afx_msg void OnButtonOtherspeed(); 
	afx_msg void OnButtonTestio(); 
	afx_msg void OnButtonSelectfile(); 
	afx_msg void OnButtonClosepro(); 
	afx_msg void OnButtonI2ctest(); 
	afx_msg void OnButtonCtrltrans(); 
	afx_msg void OnButtonInttrans(); 
	afx_msg void OnButtonIsotrans(); 
	afx_msg void OnButtonBulktrans(); 
	afx_msg void OnButtonFifo8wr(); 
	afx_msg void OnButtonFifo8rd(); 
	afx_msg void OnButtonFifo16wr(); 
	afx_msg void OnButtonFifo16rd(); 
	afx_msg void OnButtonGpifsngwr(); 
	afx_msg void OnButtonGpifsngrd(); 
	afx_msg void OnButtonGpiffifowr(); 
	afx_msg void OnButtonGpiffiford(); 
	afx_msg void OnButtonUartRx(); 
	afx_msg void OnButtonUarttx(); 
	afx_msg void OnSelendokComboBaudrate(); 
	afx_msg void OnButtonSingleshow(); 
	afx_msg void OnButtonThannelselect(); 
	afx_msg void OnButtonDatadowm(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CYDEMODLG_H__9DF09C17_465C_45DC_A530_B617C257A8D5__INCLUDED_)