maindlg.h

来自「嵌入式DOS系统上位升级程序FileUpgrade, 需配合本人上传的FileU」· C头文件 代码 · 共 64 行

H
64
字号
// MainDlg.h : header file
//

#if !defined(AFX_MAINDLG_H__EAF537E1_CB8B_4676_99D9_AF9C822868E7__INCLUDED_)
#define AFX_MAINDLG_H__EAF537E1_CB8B_4676_99D9_AF9C822868E7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "NumericalEdit.h"
/////////////////////////////////////////////////////////////////////////////
// CMainDlg dialog

class CMainDlg : public CDialog
{
// Construction
public:
	CMainDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMainDlg)
	enum { IDD = IDD_MY_DIALOG };
	CEdit	m_FileNameEditCtrl;
	//}}AFX_DATA

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CMainDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeBaudRatioComboBox();
	afx_msg void OnSelchangeCommPortNo();
	virtual void OnOK(){};
	virtual void OnCancel(){};
	afx_msg void OnExit();
	afx_msg void OnBeginSendFile();
	afx_msg void OnStopBUTTON();
	afx_msg void OnButton1();
	afx_msg void OnWorkModelCHECK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int GetTransferFileName();
	CNumericalEdit	m_UprComputerNoEditCtrl;
	CWinThread* m_SendThread;
	long int GetBaudRate();
	void  UpgradeEnd();
	void  UpgradeStart();
	static UINT SendFileThreadProc( LPVOID pParam );

};

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

#endif // !defined(AFX_MAINDLG_H__EAF537E1_CB8B_4676_99D9_AF9C822868E7__INCLUDED_)

⌨️ 快捷键说明

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