usbdlg.h

来自「包括EZ811和SL811的文档」· C头文件 代码 · 共 81 行

H
81
字号
// usbDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CUsbtestDlg dialog
#ifndef __usb
#define __usb

class CUsbtestDlg : public CDialog
{
// Construction
private:
	HINSTANCE hUsbLib;
	BITMAPFILEHEADER BFH;
	BITMAPINFOHEADER BIH;
	CString linedata, ViewerPath, m_BmpFilePath;
	BOOL UserAbort, SaveFile;
	CFile BmpFile;
	void ReadBlock(BYTE Cmd);
	void WriteBlock(BYTE Cmd);
	void EnableAllControl(BOOL IsEnable); 
	int GetCharHeight(CDC* pdc);
	void ClearText();
	void GetEndPoint();
	void Idle();
	BOOL MakeBmpFileHeader(short linecount, short linesize);
	void MakeBmpFile();
	void SetViewerIcon();
	CString GetBmpFilePath();
	
public:
	CUsbtestDlg(CWnd* pParent = NULL);	// standard constructor
	

// Dialog Data
//{{AFX_DATA(CUsbtestDlg)
	enum { IDD = IDD_USBTEST_DIALOG };
	UINT	m_NumberOfImageLine;
	UINT	m_ImageSize;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CUsbtestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnDestroy();
	afx_msg void OnReset();
	afx_msg void OnAbortButton();
	afx_msg void OnViewimage();
	afx_msg void OnSearchimageviewer();
	afx_msg void OnOpenDevButton();
	afx_msg void OnSl11rDmemTestButton();
	afx_msg void OnEppAddrReadButton();
	afx_msg void OnEppAddrWriteButton();
	afx_msg void OnEppDataReadButton();
	afx_msg void OnEppDataWriteButton();
	afx_msg void OnSramTestButton();
	afx_msg void OnPeekButton();
	afx_msg void OnPokeButton();
	afx_msg void OnWriteEppBlockButton();
	afx_msg void OnWriteSramBlockButton();
	afx_msg void OnReadSramBlockButton();
	afx_msg void OnSaveFileButton();
	afx_msg void OnReadEppBlockButton();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
#endif

⌨️ 快捷键说明

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