PaneView.cpp
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // PaneView.cpp : implementation of the CPaneView class
  2. //
  3. // This file is a part of the XTREME TOOLKIT PRO MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #include "stdafx.h"
  21. #include "Pane.h"
  22. #include "PaneDoc.h"
  23. #include "PaneView.h"
  24. #ifdef _DEBUG
  25. #define new DEBUG_NEW
  26. #endif
  27. // CPaneView
  28. IMPLEMENT_DYNCREATE(CPaneView, CView)
  29. BEGIN_MESSAGE_MAP(CPaneView, CView)
  30. // Standard printing commands
  31. ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
  32. ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
  33. ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
  34. END_MESSAGE_MAP()
  35. // CPaneView construction/destruction
  36. CPaneView::CPaneView()
  37. {
  38. // TODO: add construction code here
  39. }
  40. CPaneView::~CPaneView()
  41. {
  42. }
  43. BOOL CPaneView::PreCreateWindow(CREATESTRUCT& cs)
  44. {
  45. // TODO: Modify the Window class or styles here by modifying
  46. //  the CREATESTRUCT cs
  47. return CView::PreCreateWindow(cs);
  48. }
  49. // CPaneView drawing
  50. void CPaneView::OnDraw(CDC* /*pDC*/)
  51. {
  52. }
  53. // CPaneView printing
  54. BOOL CPaneView::OnPreparePrinting(CPrintInfo* pInfo)
  55. {
  56. // default preparation
  57. return DoPreparePrinting(pInfo);
  58. }
  59. void CPaneView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  60. {
  61. // TODO: add extra initialization before printing
  62. }
  63. void CPaneView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  64. {
  65. // TODO: add cleanup after printing
  66. }
  67. // CPaneView diagnostics
  68. #ifdef _DEBUG
  69. void CPaneView::AssertValid() const
  70. {
  71. CView::AssertValid();
  72. }
  73. void CPaneView::Dump(CDumpContext& dc) const
  74. {
  75. CView::Dump(dc);
  76. }
  77. CPaneDoc* CPaneView::GetDocument() const // non-debug version is inline
  78. {
  79. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPaneDoc)));
  80. return (CPaneDoc*)m_pDocument;
  81. }
  82. #endif //_DEBUG
  83. // CPaneView message handlers