-
Notifications
You must be signed in to change notification settings - Fork 8
/
AView.h.bak
66 lines (55 loc) · 1.52 KB
/
AView.h.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// AView.h : CAView 类的接口
//
#pragma once
#include"uniclass.h"
#include "stdafx.h"
#include"FA2013Doc.h"
class CAView : public CScrollView
{
protected: // 仅从序列化创建
CAView();
DECLARE_DYNCREATE(CAView)
// 特性
public:
CFA2013Doc* GetDocument() const;
// 操作
public:
int drawCom(void);
CDC m_DC;
CBitmap m_Bmp;
void CAView::InitialDBB(void);
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // 构造后第一次调用
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// 实现
public:
virtual ~CAView();
#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()
public:
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
};
#ifndef _DEBUG // AView.cpp 中的调试版本
inline CFA2013Doc* CAView::GetDocument() const
{ return reinterpret_cast<CFA2013Doc*>(m_pDocument); }
#endif