⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aftntransdlg.h

📁 此程序利用串口读取民航AFTN电报网中的AFTN信息
💻 H
字号:
// AFTNTransDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#include "PushPinButton.h"
#include "TelThread.h"
#define WM_TELRV			WM_USER+100

#if !defined(AFX_AFTNTRANSDLG_H__7393C8C2_2CB2_11D6_9399_005004BE5A85__INCLUDED_)
#define AFX_AFTNTRANSDLG_H__7393C8C2_2CB2_11D6_9399_005004BE5A85__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CAFTNTransDlg dialog

class CAFTNTransDlg : public CDialog
{
// Construction
public:

	CBitmap m_BitmapLights[3];
	CAFTNTransDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CAFTNTransDlg)
	enum { IDD = IDD_AFTNTRANS_DIALOG };
	CPushPinButton	m_ctrlPushPin;
	CString	m_strRxData;
	CMSComm	m_ctrlComm;
	BOOL	m_bConnected;
	BOOL	m_bLock;
	CString	m_strTxData;
	BOOL	m_bAutoClear;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAFTNTransDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnCancel();
	afx_msg void OnAftnComm();
	afx_msg void OnConnect();
	afx_msg void OnButtonClear();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnChkLock();
	afx_msg void OnButtonSend();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_sChannel;
	LONG m_nTxCount;
	BYTE rxdata[2048];
	CBitmap* pBitmap;
	CTelThread* m_pTelThread;
};

typedef struct _COMMINFO
{
	BOOL bConnected;
	int bPort;
	BYTE bByteSize, bParity, bStopBits;
	DWORD dwBaudRate ;
}CommInfo,*PCommInfo;

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
static VARIANT variant_inp;
static COleSafeArray safearray_inp;
static long len,k;
static CString strtemp;
static CString strtemp1;
static CString strTxRv;
static CString strTelRv;
static BOOL bValid;
static CString strTele;

#endif // !defined(AFX_AFTNTRANSDLG_H__7393C8C2_2CB2_11D6_9399_005004BE5A85__INCLUDED_)

⌨️ 快捷键说明

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