ellipse (mfc, View.h)

 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
// WinLab(01)View.h : interface of the CWinLab01View class
//
#pragma once
class CWinLab01View : public CView
{
protected: // create from serialization only
CWinLab01View();
DECLARE_DYNCREATE(CWinLab01View)
// Attributes
public:
CWinLab01Doc* GetDocument() const;
// Operations
public:
// Overrides
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
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);
// Implementation
public:
virtual ~CWinLab01View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnCustomSize();
afx_msg void OnCustomColor();
afx_msg void OnFileOpen();
};
#ifndef _DEBUG // debug version in WinLab(01)View.cpp
inline CWinLab01Doc* CWinLab01View::GetDocument() const
{ return reinterpret_cast<CWinLab01Doc*>(m_pDocument); }
#endif