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

📄 dialdlg.cpp

📁 自动发送
💻 CPP
字号:
// DialDlg.cpp : implementation file
//

#include "stdafx.h"
#include "smstest.h"
#include "DialDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDialDlg dialog


CDialDlg::CDialDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDialDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialDlg)
	m_recontent = _T("");
	//}}AFX_DATA_INIT
}


void CDialDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialDlg)
	DDX_CBString(pDX, IDC_RECONTENT, m_recontent);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialDlg, CDialog)
	//{{AFX_MSG_MAP(CDialDlg)
	ON_BN_CLICKED(IDC_dial, Ondial)
	ON_BN_CLICKED(IDC_SEND, OnSend)
	ON_CBN_EDITCHANGE(IDC_NUMBER, OnEditchangeNumber)
	ON_BN_CLICKED(IDC_READ, OnRead)
	ON_BN_CLICKED(IDC_HANGUP, OnHangup)
	ON_BN_CLICKED(IDC_B_autoSend, OnBautoSend)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialDlg message handlers

void CDialDlg::Ondial() 
{
	
}


void CDialDlg::OnSend() 
{
	// TODO: Add your control notification handler code here
	
}

void CDialDlg::OnEditchangeNumber() 
{
	// TODO: Add your control notification handler code here
	
}

void CDialDlg::OnRead() 
{
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	
	int n;
	int i;

	
	SM_PARAM* pMsg;
	pMsg = (SM_PARAM *) malloc(sizeof(SM_PARAM)*50);

//	n=m_gsmcomm.ReadMessage(pMsg);
	n=gsmReadMessage(pMsg);
	for (i=0;i<n;i++)
	{
		m_recontent+=pMsg[i].TP_UD;
	
	}
	

	free(pMsg);
	//free(ptr);
	UpdateData(false);
}

void CDialDlg::OnHangup() 
{
	// TODO: Add your control notification handler code here
	
}



void CDialDlg::OnBautoSend() 
{
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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