anywhereView.cpp
资源名称:(vc).rar [点击查看]
上传用户:wpp2016
上传日期:2010-02-01
资源大小:1250k
文件大小:3k
源码类别:
Telnet服务器
开发平台:
Visual C++
- // anywhereView.cpp : implementation of the CAnywhereView class
- //
- #include "stdafx.h"
- #include "anywhere.h"
- #include "anywhereDoc.h"
- #include "anywhereView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CAnywhereView
- IMPLEMENT_DYNCREATE(CAnywhereView, CView)
- BEGIN_MESSAGE_MAP(CAnywhereView, CView)
- //{{AFX_MSG_MAP(CAnywhereView)
- // 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, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CAnywhereView construction/destruction
- CAnywhereView::CAnywhereView()
- {
- // TODO: add construction code here
- }
- CAnywhereView::~CAnywhereView()
- {
- }
- BOOL CAnywhereView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CAnywhereView drawing
- void CAnywhereView::OnDraw(CDC* pDC)
- {
- CAnywhereDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CAnywhereView printing
- BOOL CAnywhereView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void CAnywhereView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void CAnywhereView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- /////////////////////////////////////////////////////////////////////////////
- // CAnywhereView diagnostics
- #ifdef _DEBUG
- void CAnywhereView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CAnywhereView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CAnywhereDoc* CAnywhereView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CAnywhereDoc)));
- return (CAnywhereDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CAnywhereView message handlers