Files

67 lines
1.3 KiB
C++

// TED.cpp : implementation file
//
#include "stdafx.h"
#include "sp.h"
#include "TED.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTED dialog
CTED::CTED(CWnd* pParent /*=NULL*/)
: CDialog(CTED::IDD, pParent)
{
//{{AFX_DATA_INIT(CTED)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CTED::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTED)
DDX_Control(pDX, IDC_EDTEXT, m_edText);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTED, CDialog)
//{{AFX_MSG_MAP(CTED)
ON_BN_CLICKED(IDC_BTNCOPYALL, OnBtncopyall)
ON_BN_CLICKED(IDC_BTNCOPYSELECTION, OnBtncopyselection)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTED message handlers
BOOL CTED::OnInitDialog()
{
CDialog::OnInitDialog();
m_edText.SetWindowText(m_strText);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTED::OnBtncopyall()
{
m_edText.SetSel(0,-1);
m_edText.Copy();
}
void CTED::OnBtncopyselection()
{
m_edText.Copy();
}