// ChannelDump.cpp : implementation file
//

#include "stdafx.h"
#include "animsize.h"
#include "ChannelDump.h"

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

/////////////////////////////////////////////////////////////////////////////
// ChannelDump dialog


ChannelDump::ChannelDump(const char *text, CWnd* pParent /*=NULL*/)
	: CDialog(ChannelDump::IDD, pParent)
{
	//{{AFX_DATA_INIT(ChannelDump)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT

	editText = text;
}


void ChannelDump::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(ChannelDump)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// ChannelDump message handlers

BOOL ChannelDump::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CEdit *edit;
	edit = (CEdit *)GetDlgItem( IDC_JOINT_EDIT );
	edit->SetWindowText( editText );
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void ChannelDump::PostNcDestroy() 
{
	// TODO: Add your specialized code here and/or call the base class
	
	CDialog::PostNcDestroy();

	delete this;
}
