Source code of Windows XP (NT5)
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.

79 lines
1.7 KiB

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