📄 testusbcedlg.h
字号:
// TestUsbCeDlg.h : header file
//
#if !defined(AFX_TESTUSBCEDLG_H__9F4D19D4_C614_462F_B876_DA9E55BBF664__INCLUDED_)
#define AFX_TESTUSBCEDLG_H__9F4D19D4_C614_462F_B876_DA9E55BBF664__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CTestUsbCeDlg dialog
class CTestUsbCeDlg : public CDialog
{
// Construction
public:
// void RenewApplication(BYTE buf,DWORD len);
void SaveApplication(PBYTE buf,DWORD len);
void RenewApplication(PBYTE buf,DWORD len);
int Byte4ToInt(const BYTE *p);
int Byte2ToInt(const BYTE *p);
void IntTo4Byte(char *p,int nIndex);
CTestUsbCeDlg(CWnd* pParent = NULL); // standard constructor
void UsbCommand(BYTE usbCommand, int usbLength);
void SetConnUsbState();
void MainGoDirection();
void UpdateApplication();
void TimeDisplay();
CFile appFile;
CString m_pathName;
CString m_fileName;
BYTE uReceive; //更新程序,数据是否正确。
PBYTE pReviceData;
int m_intFileSerialNum;
int lastSecond;
// Dialog Data
//{{AFX_DATA(CTestUsbCeDlg)
enum { IDD = IDD_TESTUSBCE_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestUsbCeDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CWinThread* m_pReadProc;
// Generated message map functions
//{{AFX_MSG(CTestUsbCeDlg)
virtual BOOL OnInitDialog();
afx_msg void OnDestroy();
afx_msg void OnButton1();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CBitmap m_bmpConn;
CString m_strFileName;
int keyValue;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTUSBCEDLG_H__9F4D19D4_C614_462F_B876_DA9E55BBF664__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -