// DLG_Msg_See.cpp : implementation file
//

#include "stdafx.h"
#include "SmsManager.h"
#include "DLG_Msg_See.h"

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

/////////////////////////////////////////////////////////////////////////////
// DLG_Msg_See dialog


DLG_Msg_See::DLG_Msg_See(CWnd* pParent /*=NULL*/)
	: CDialog(DLG_Msg_See::IDD, pParent)
{
	//{{AFX_DATA_INIT(DLG_Msg_See)
/*
	m_strMsg = _T("");
	m_strRecver = _T("");
	m_strSender = _T("");
	m_strSendTime = _T("");
	m_strType = _T("");
*/
	//}}AFX_DATA_INIT

	m_bShowRecver = false;
}


void DLG_Msg_See::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DLG_Msg_See)
	DDX_Text(pDX, IDC_MSG_SEE_MSG, m_strMsg);
	DDX_Text(pDX, IDC_MSG_SEE_RECVER, m_strRecver);
	DDX_Text(pDX, IDC_MSG_SEE_SENDER, m_strSender);
	DDX_Text(pDX, IDC_MSG_SEE_SENDTIME, m_strSendTime);
	DDX_Text(pDX, IDC_MSG_SEE_TYPE, m_strType);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DLG_Msg_See, CDialog)
	//{{AFX_MSG_MAP(DLG_Msg_See)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DLG_Msg_See message handlers

BOOL DLG_Msg_See::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	if ( !m_bShowRecver )
	{
		GetDlgItem(IDC_MSG_SEE_RECVER_S1)->ShowWindow(SW_HIDE);
		GetDlgItem(IDC_MSG_SEE_RECVER)->ShowWindow(SW_HIDE);
	}
	//UpdateData(false);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void DLG_Msg_See::SetParam(BOOL bShowRecver)
{
	m_bShowRecver = bShowRecver;
}