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

📄 msgcluedlg.cpp

📁 tc35i(GSM模块)的控制程序VC源码
💻 CPP
字号:
// MsgClueDlg.cpp : implementation file
//

#include "stdafx.h"
#include "gsm_ctrl_prj.h"
#include "MsgClueDlg.h"

#include "Common.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMsgClueDlg dialog

bool CMsgClueDlg::m_isShow = false;

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


void CMsgClueDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMsgClueDlg)
	DDX_Text(pDX, IDC_MSG, m_msgEdit);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMsgClueDlg, CDialog)
	//{{AFX_MSG_MAP(CMsgClueDlg)
	ON_BN_CLICKED(IDC_REPLYMSG, OnReplyMsg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMsgClueDlg message handlers
void CMsgClueDlg::SetShowStr(CString str,CString timeStr,CString telStr){
    m_showStr = str;
	m_telStr = telStr;
	m_timeStr = timeStr;
}
//呼叫
void CMsgClueDlg::OnOK() 
{
	// TODO: Add extra validation here
	AfxGetMainWnd()->SendMessage(MSG_CALL_OR_MSG_BACK,BACK_CALL,(long)&m_telStr);
	m_isShow = false;
	CDialog::OnOK();
}
//回复
void CMsgClueDlg::OnCancel() 
{
	// TODO: Add extra cleanup here
    m_isShow = false;
	CDialog::OnCancel();
}
CString CMsgClueDlg::GetTimeStr(){
    return m_timeStr;
}
CString CMsgClueDlg::GetTelStr(){
	return m_telStr;
}
BOOL CMsgClueDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_isShow = true;
    SetDlgItemText(IDC_MSG,m_showStr);
	SetDlgItemText(IDC_TIME,m_timeStr);
	SetDlgItemText(IDC_COMFROM,m_telStr);
//	SetDlgItemText(IDC_TELCLUE,m_showStr);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CMsgClueDlg::OnReplyMsg() 
{
	// TODO: Add your control notification handler code here
	AfxGetMainWnd()->SendMessage(MSG_CALL_OR_MSG_BACK,BACK_MSG,(long)&m_telStr);
	m_isShow = false;
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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