📄 filesenddlg.h
字号:
// FileSendDlg.h : header file
//
#if !defined(AFX_FILESENDDLG_H__05BC3E51_2205_4440_AE67_8308A6209D05__INCLUDED_)
#define AFX_FILESENDDLG_H__05BC3E51_2205_4440_AE67_8308A6209D05__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "serialport.h"
#define BUFFER_SIZE 3000000
#define BLOCK_SIZE 8192
/////////////////////////////////////////////////////////////////////////////
// CFileSendDlg dialog
class CFileSendDlg : public CDialog
{
// Construction
public:
int m_nFileSum;
unsigned char m_szFileList[10][100];
BOOL m_bComState;
int m_nCurSendBlock;
int m_nCurMaxBlock;
CFile m_file;
unsigned char m_szRecFileName[100];
DWORD m_nRecFileParity;
DWORD m_nRecFileLength;
unsigned char *m_chrRecBuffer;
DWORD m_nRecSum;
int m_nHeadFlag;
BOOL m_bFileBodyRec;
int m_nSendNo;
DWORD m_nSendBufLength;
int m_nSendFileState;
unsigned char *m_szSendBuffer;
void FullSendBuffer(int FileNo,int Block);
void SaveData(int count, unsigned char *pbVal);
CSerialPort m_port;
CFileSendDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CFileSendDlg)
enum { IDD = IDD_FILESEND_DIALOG };
CListBox m_list2;
CListBox m_list1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFileSendDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CFileSendDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg LONG OnCommunication(UINT, LONG);
afx_msg void OnSendOver(UINT, LONG);
afx_msg void OnBnopencom();
afx_msg void OnClose();
afx_msg void OnBnclear();
afx_msg void OnBncleara();
afx_msg void OnBnbrowse();
afx_msg void OnBnsendfile();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FILESENDDLG_H__05BC3E51_2205_4440_AE67_8308A6209D05__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -