Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB

4 years ago
  1. // dbwinvw.cpp : implementation of the CDbwin32View class
  2. //
  3. #include "stdafx.h"
  4. #include "dbwin32.h"
  5. #include "dbwindoc.h"
  6. #include "dbwinvw.h"
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char BASED_CODE THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CDbwin32View
  13. IMPLEMENT_DYNCREATE(CDbwin32View, CView)
  14. BEGIN_MESSAGE_MAP(CDbwin32View, CView)
  15. //{{AFX_MSG_MAP(CDbwin32View)
  16. // NOTE - the ClassWizard will add and remove mapping macros here.
  17. // DO NOT EDIT what you see in these blocks of generated code!
  18. //}}AFX_MSG_MAP
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CDbwin32View construction/destruction
  22. CDbwin32View::CDbwin32View()
  23. {
  24. // TODO: add construction code here
  25. }
  26. CDbwin32View::~CDbwin32View()
  27. {
  28. }
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CDbwin32View drawing
  31. void CDbwin32View::OnDraw(CDC* pDC)
  32. {
  33. CDbwin32Doc* pDoc = GetDocument();
  34. ASSERT_VALID(pDoc);
  35. // TODO: add draw code for native data here
  36. }
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CDbwin32View diagnostics
  39. #ifdef _DEBUG
  40. void CDbwin32View::AssertValid() const
  41. {
  42. CView::AssertValid();
  43. }
  44. void CDbwin32View::Dump(CDumpContext& dc) const
  45. {
  46. CView::Dump(dc);
  47. }
  48. CDbwin32Doc* CDbwin32View::GetDocument() // non-debug version is inline
  49. {
  50. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDbwin32Doc)));
  51. return (CDbwin32Doc*)m_pDocument;
  52. }
  53. #endif //_DEBUG
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CDbwin32View message handlers