home *** CD-ROM | disk | FTP | other *** search
- // MsgTracerView.cpp : implementation of the CMsgTracerView class
- //
-
- #include "stdafx.h"
- #include "MsgTracer.h"
-
- #include "MsgTracerDoc.h"
- #include "MsgTracerView.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CMsgTracerView
-
- IMPLEMENT_DYNCREATE(CMsgTracerView, CEditView)
-
- BEGIN_MESSAGE_MAP(CMsgTracerView, CEditView)
- //{{AFX_MSG_MAP(CMsgTracerView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview)
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CMsgTracerView construction/destruction
-
- CMsgTracerView::CMsgTracerView()
- {
- // TODO: add construction code here
-
- }
-
- CMsgTracerView::~CMsgTracerView()
- {
- }
-
- BOOL CMsgTracerView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- BOOL bPreCreated = CEditView::PreCreateWindow(cs);
- cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL); // Enable word-wrapping
-
- return bPreCreated;
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CMsgTracerView drawing
-
- void CMsgTracerView::OnDraw(CDC* pDC)
- {
- CMsgTracerDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CMsgTracerView printing
-
- BOOL CMsgTracerView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default CEditView preparation
- return CEditView::OnPreparePrinting(pInfo);
- }
-
- void CMsgTracerView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
- {
- // Default CEditView begin printing.
- CEditView::OnBeginPrinting(pDC, pInfo);
- }
-
- void CMsgTracerView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
- {
- // Default CEditView end printing
- CEditView::OnEndPrinting(pDC, pInfo);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CMsgTracerView diagnostics
-
- #ifdef _DEBUG
- void CMsgTracerView::AssertValid() const
- {
- CEditView::AssertValid();
- }
-
- void CMsgTracerView::Dump(CDumpContext& dc) const
- {
- CEditView::Dump(dc);
- }
-
- CMsgTracerDoc* CMsgTracerView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMsgTracerDoc)));
- return (CMsgTracerDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CMsgTracerView message handlers
-