www.gusucode.com > VC++开发的ACD树形策略编辑器-源码程序 > VC++开发的ACD树形策略编辑器-源码程序/code/ReturnValue.cpp

    // ReturnValue.cpp : implementation file
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "dsACD_IVR.h"
#include "ReturnValue.h"

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

/////////////////////////////////////////////////////////////////////////////
// CReturnValue dialog


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


void CReturnValue::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CReturnValue)
	DDX_LBString(pDX, IDC_LISTRETURN, m_csReturn);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CReturnValue message handlers

BOOL CReturnValue::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CListBox* pLB = (CListBox*) GetDlgItem(IDC_LISTRETURN);
    pLB->InsertString(-1, "返回成功");
    pLB->InsertString(-1, "返回失败");
    pLB->InsertString(-1, "返回挂机");
    pLB->InsertString(-1, "返回呼叫失败");
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}