RebarMenuView.cpp
资源名称:RebarMenu.zip [点击查看]
上传用户:xywutai
上传日期:2007-01-02
资源大小:72k
文件大小:3k
源码类别:
工具条
开发平台:
Visual C++
- // RebarMenuView.cpp : implementation of the CRebarMenuView class
- //
- #include "stdafx.h"
- #include "RebarMenu.h"
- #include "RebarMenuDoc.h"
- #include "RebarMenuView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CRebarMenuView
- IMPLEMENT_DYNCREATE(CRebarMenuView, CView)
- BEGIN_MESSAGE_MAP(CRebarMenuView, CView)
- //{{AFX_MSG_MAP(CRebarMenuView)
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CRebarMenuView construction/destruction
- CRebarMenuView::CRebarMenuView()
- {
- // TODO: add construction code here
- }
- CRebarMenuView::~CRebarMenuView()
- {
- }
- BOOL CRebarMenuView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CRebarMenuView drawing
- void CRebarMenuView::OnDraw(CDC* pDC)
- {
- CRebarMenuDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CRebarMenuView printing
- BOOL CRebarMenuView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void CRebarMenuView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void CRebarMenuView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- /////////////////////////////////////////////////////////////////////////////
- // CRebarMenuView diagnostics
- #ifdef _DEBUG
- void CRebarMenuView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CRebarMenuView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CRebarMenuDoc* CRebarMenuView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRebarMenuDoc)));
- return (CRebarMenuDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CRebarMenuView message handlers
- void CRebarMenuView::OnEmpty()
- {
- // TODO: Add your command handler code here
- }