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

📄 msgview.h

📁 GSM Mobile收发短信
💻 H
字号:
// MsgView.h : interface of the CMsgView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
//}}AFX_INCLUDES

#if !defined(AFX_MSGVIEW_H__D8DB2B41_6A3C_42C5_9819_74D0EEAF80A1__INCLUDED_)
#define AFX_MSGVIEW_H__D8DB2B41_6A3C_42C5_9819_74D0EEAF80A1__INCLUDED_

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

#include "SMsg.h"

typedef int (WINAPI  *pcomOpen)(char* ComN);

typedef int (WINAPI  *pcomSetUp)(int Baudrate,int DataBits,int Parity,int StopBits); 

typedef int (WINAPI  *pcomHandshaking)(int eHandshake);

typedef int (WINAPI  *pcomClose)();

typedef int (WINAPI  *pmsgInit)(const char* Cent = NULL,
		        const char* m_Com = NULL,
				const int Baudrate = (int)CSerial::EBaud9600,
				const int DataBits = (int)CSerial::EData8,
				const int Parity   = (int)CSerial::EParNone,
				const int StopBits =(int)CSerial::EStop1,
				const int eHandshake=(int)CSerial::EHandshakeOff);

typedef int (WINAPI  *pmsgSend)(char* Body,char* Hand);

typedef int (WINAPI  *pmsgRead)(int Type);//0-->没读,1-->已读;

typedef int (WINAPI  *pmsgDel)(int Index);

typedef int (WINAPI  *pmsgRet)(int Seq,char *Ret,int Len);//Row>128;Col>128*2;Seq!=NULL;Ret!=NULL;

typedef int (WINAPI  *pmsgRet2)(int Seq,char **Ret,int Row,int Col);//Row>128;Col>128*2;Seq!=NULL;Ret!=NULL;

class CMsgView : public CFormView
{
protected: // create from serialization only
	CMsgView();
	DECLARE_DYNCREATE(CMsgView)

public:
	//{{AFX_DATA(CMsgView)
	enum { IDD = IDD_MSG_FORM };
	CString	m_Send;
	CString	m_Ret;
	int		m_Read;
	CString	m_Init;
	int		m_Del;
	CString	m_Hand;
	int		m_Seq;
	//}}AFX_DATA

// Attributes
public:
	CMsgDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMsgView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMsgView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMsgView)
	afx_msg void OnBtninit();
	afx_msg void OnBtnread();
	afx_msg void OnBtnsend();
	afx_msg void OnBtndel();
	afx_msg void OnBtnret();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CSMsg Msg;

	pcomOpen comOpen ;
	pcomSetUp comSetUp ;
	pcomHandshaking comHandshaking ;
	pcomClose comClose ;
	pmsgInit msgInit ;
	pmsgSend msgSend ;
	pmsgRead msgRead ;
	pmsgDel msgDel ;
	pmsgRet msgRet ;
	pmsgRet2 msgRet2 ;

};

#ifndef _DEBUG  // debug version in MsgView.cpp
inline CMsgDoc* CMsgView::GetDocument()
   { return (CMsgDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MSGVIEW_H__D8DB2B41_6A3C_42C5_9819_74D0EEAF80A1__INCLUDED_)

⌨️ 快捷键说明

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