ExToolBarView.cpp
上传用户:trjx11
上传日期:2021-03-01
资源大小:158k
文件大小:3k
源码类别:

工具条

开发平台:

Visual C++

  1. // ExToolBarView.cpp : implementation of the CExToolBarView class
  2. //
  3. #include "stdafx.h"
  4. #include "ExToolBar.h"
  5. #include "ExToolBarDoc.h"
  6. #include "ExToolBarView.h"
  7. #include "mainfrm.h"
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CExToolBarView
  15. IMPLEMENT_DYNCREATE(CExToolBarView, CView)
  16. BEGIN_MESSAGE_MAP(CExToolBarView, CView)
  17. //{{AFX_MSG_MAP(CExToolBarView)
  18. // NOTE - the ClassWizard will add and remove mapping macros here.
  19. //    DO NOT EDIT what you see in these blocks of generated code!
  20. //}}AFX_MSG_MAP
  21. // Standard printing commands
  22. ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
  23. ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
  24. ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
  25. END_MESSAGE_MAP()
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CExToolBarView construction/destruction
  28. CExToolBarView::CExToolBarView()
  29. {
  30. // TODO: add construction code here
  31. }
  32. CExToolBarView::~CExToolBarView()
  33. {
  34. }
  35. BOOL CExToolBarView::PreCreateWindow(CREATESTRUCT& cs)
  36. {
  37. // TODO: Modify the Window class or styles here by modifying
  38. //  the CREATESTRUCT cs
  39. return CView::PreCreateWindow(cs);
  40. }
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CExToolBarView drawing
  43. void CExToolBarView::OnDraw(CDC* pDC)
  44. {
  45. CExToolBarDoc* pDoc = GetDocument();
  46. ASSERT_VALID(pDoc);
  47. }
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CExToolBarView printing
  50. BOOL CExToolBarView::OnPreparePrinting(CPrintInfo* pInfo)
  51. {
  52. // default preparation
  53. return DoPreparePrinting(pInfo);
  54. }
  55. void CExToolBarView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  56. {
  57. // TODO: add extra initialization before printing
  58. }
  59. void CExToolBarView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  60. {
  61. // TODO: add cleanup after printing
  62. }
  63. /////////////////////////////////////////////////////////////////////////////
  64. // CExToolBarView diagnostics
  65. #ifdef _DEBUG
  66. void CExToolBarView::AssertValid() const
  67. {
  68. CView::AssertValid();
  69. }
  70. void CExToolBarView::Dump(CDumpContext& dc) const
  71. {
  72. CView::Dump(dc);
  73. }
  74. CExToolBarDoc* CExToolBarView::GetDocument() // non-debug version is inline
  75. {
  76. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CExToolBarDoc)));
  77. return (CExToolBarDoc*)m_pDocument;
  78. }
  79. #endif //_DEBUG
  80. /////////////////////////////////////////////////////////////////////////////
  81. // CExToolBarView message handlers