armupdatedlg.h

来自「s3c2410 wince bootload update tools」· C头文件 代码 · 共 89 行

H
89
字号
// ARMUpdateDlg.h : header file
//

#if !defined(AFX_ARMUPDATEDLG_H__3A197A32_D658_4252_A525_8ED33B779E88__INCLUDED_)
#define AFX_ARMUPDATEDLG_H__3A197A32_D658_4252_A525_8ED33B779E88__INCLUDED_

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

#include "ComSetup.h"
#include "FtpSetup.h"
#include "Tftp.h"
#include "MyRichEdit.h"

class CARMUpdateDlgAutoProxy;

/////////////////////////////////////////////////////////////////////////////
// CARMUpdateDlg dialog

class CARMUpdateDlg : public CDialog
{
	DECLARE_DYNAMIC(CARMUpdateDlg);
	friend class CARMUpdateDlgAutoProxy;

// Construction
public:
	CARMUpdateDlg(CWnd* pParent = NULL);	// standard constructor
	virtual ~CARMUpdateDlg();

// Dialog Data
	//{{AFX_DATA(CARMUpdateDlg)
	enum { IDD = IDD_ARMUPDATE_DIALOG };
	CProgressCtrl	m_Prograss;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CARMUpdateDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
public:
	BOOL isAddrShow;	//是否显示地址
	BOOL isStringShow;	//是否显示字串的内容
	HANDLE m_hThread;	//串口接收字符主线程
	CStatusBar StatusBar;
	CFtpSetup FtpSetup;
private:
	void ReSetupCom(void);
// Implementation
protected:
	CARMUpdateDlgAutoProxy* m_pAutoProxy;
	HICON m_hIcon;
	CComSetup ComSetup;
	MyRichEdit RichEdit;
	HANDLE m_NKThread,m_BootLoadThread;
	
	BOOL CanExit();

	// Generated message map functions
	//{{AFX_MSG(CARMUpdateDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClose();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMenuComsetup();
	afx_msg void OnMenuFtpsetup();
	afx_msg void OnMenuBintohex();
	afx_msg void OnMenuShowaddr();
	afx_msg void OnMenuShowstring();
	afx_msg void OnMenuBootloadupdate();
	afx_msg void OnMenuNkupdate();
	afx_msg void OnMenuUpdatecancel();
	afx_msg void OnMenuExit();
	afx_msg void OnMenuAbout();
	afx_msg void OnMenuSavenb0();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ARMUPDATEDLG_H__3A197A32_D658_4252_A525_8ED33B779E88__INCLUDED_)

⌨️ 快捷键说明

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