-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomework5View.h
More file actions
60 lines (48 loc) · 1.32 KB
/
Homework5View.h
File metadata and controls
60 lines (48 loc) · 1.32 KB
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
// Homework5View.h : CHomework5View 类的接口
//
#pragma once
#include "MyOpenGL.h"
class CHomework5View : public CView
{
protected: // 仅从序列化创建
CHomework5View();
DECLARE_DYNCREATE(CHomework5View)
// 特性
public:
CHomework5Doc* 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 ~CHomework5View();
#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()
CMyOpenGL m_gl;
public:
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnInitialUpdate();
};
#ifndef _DEBUG // Homework5View.cpp 中的调试版本
inline CHomework5Doc* CHomework5View::GetDocument() const
{ return reinterpret_cast<CHomework5Doc*>(m_pDocument); }
#endif