// MyEdit.cpp : implementation file // #include "stdafx.h" #include "DicomMWL.h" #include "MyEdit.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMyEdit CMyEdit::CMyEdit() { } CMyEdit::~CMyEdit() { } BEGIN_MESSAGE_MAP(CMyEdit, CEdit) //{{AFX_MSG_MAP(CMyEdit) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CMyEdit message handlers void CMyEdit::Append(CString strMsg) { CString strTmp; GetWindowText(strTmp); if (strTmp.GetLength() > 0) strTmp += "\r\n"; SetWindowText(strTmp + strMsg); int nLines = GetLineCount(); LineScroll(nLines); } void CMyEdit::Clear() { SetWindowText(""); }