home *** CD-ROM | disk | FTP | other *** search
- // lst42View.cpp : implementation of the CLst42View class
- //
-
- #include "stdafx.h"
- #include "lst42.h"
-
- #include "lst42Doc.h"
- #include "lst42View.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CLst42View
-
- IMPLEMENT_DYNCREATE(CLst42View, CView)
-
- BEGIN_MESSAGE_MAP(CLst42View, CView)
- //{{AFX_MSG_MAP(CLst42View)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- ON_COMMAND(ID_CANCEL_EDIT_SRVR, OnCancelEditSrvr)
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CLst42View construction/destruction
-
- CLst42View::CLst42View()
- {
- // TODO: add construction code here
-
- }
-
- CLst42View::~CLst42View()
- {
- }
-
- BOOL CLst42View::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- return CView::PreCreateWindow(cs);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CLst42View drawing
-
- void CLst42View::OnDraw(CDC* pDC)
- {
- CLst42Doc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CLst42View printing
-
- BOOL CLst42View::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
-
- void CLst42View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
-
- void CLst42View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // OLE Server support
-
- // The following command handler provides the standard keyboard
- // user interface to cancel an in-place editing session. Here,
- // the server (not the container) causes the deactivation.
- void CLst42View::OnCancelEditSrvr()
- {
- GetDocument()->OnDeactivateUI(FALSE);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CLst42View diagnostics
-
- #ifdef _DEBUG
- void CLst42View::AssertValid() const
- {
- CView::AssertValid();
- }
-
- void CLst42View::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
-
- CLst42Doc* CLst42View::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CLst42Doc)));
- return (CLst42Doc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CLst42View message handlers
-