ProcessManager/ProcessManagerView.h
2025-06-01 17:46:29 +08:00

53 lines
1.2 KiB
C++

// ProcessManagerView.h: CProcessManagerView 类的接口
//
#pragma once
class CProcessManagerView : public CView
{
protected: // 仅从序列化创建
CProcessManagerView() noexcept;
DECLARE_DYNCREATE(CProcessManagerView)
// 特性
public:
CProcessManagerDoc* GetDocument() const;
// 操作
public:
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// 实现
public:
virtual ~CProcessManagerView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
afx_msg void OnFilePrintPreview();
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // ProcessManagerView.cpp 中的调试版本
inline CProcessManagerDoc* CProcessManagerView::GetDocument() const
{ return reinterpret_cast<CProcessManagerDoc*>(m_pDocument); }
#endif