home *** CD-ROM | disk | FTP | other *** search
- // DBAccessView.cpp : implementation of the CDBAccessView class
- //
-
- #include "stdafx.h"
- #include "DBAccess.h"
-
- #include "DBADoc.h"
- #include "DBAView.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CDBAccessView
-
- IMPLEMENT_DYNCREATE(CDBAccessView, CView)
-
- BEGIN_MESSAGE_MAP(CDBAccessView, CView)
- //{{AFX_MSG_MAP(CDBAccessView)
- // 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
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CDBAccessView construction/destruction
-
- CDBAccessView::CDBAccessView()
- {
- // TODO: add construction code here
-
- }
-
- CDBAccessView::~CDBAccessView()
- {
- }
-
- BOOL CDBAccessView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- return CView::PreCreateWindow(cs);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CDBAccessView drawing
-
- void CDBAccessView::OnDraw(CDC* pDC)
- {
- CDBAccessDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CDBAccessView diagnostics
-
- #ifdef _DEBUG
- void CDBAccessView::AssertValid() const
- {
- CView::AssertValid();
- }
-
- void CDBAccessView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
-
- CDBAccessDoc* CDBAccessView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDBAccessDoc)));
- return (CDBAccessDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CDBAccessView message handlers
-