RebarMenuView.cpp
上传用户:xywutai
上传日期:2007-01-02
资源大小:72k
文件大小:3k
源码类别:

工具条

开发平台:

Visual C++

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