-
Notifications
You must be signed in to change notification settings - Fork 0
/
SketcherView.h
61 lines (50 loc) · 1.4 KB
/
SketcherView.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
53
54
55
56
57
58
59
60
// SketcherView.h : interface of the CSketcherView class
//
#pragma once
class CSketcherView : public CView
{
protected: // create from serialization only
CSketcherView();
DECLARE_DYNCREATE(CSketcherView)
// Attributes
public:
CSketcherDoc* 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 ~CSketcherView();
#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 OnSketcherLoadimage();
afx_msg void OnImageDisplaysource();
afx_msg void OnImageDisplaygradientmap();
afx_msg void OnImageDisplayluminancemap();
afx_msg void OnImageDisplaycanvas();
afx_msg void OnSketcherSketch();
protected:
CString m_strText;
public:
void SetViewText(LPCTSTR pText);
void ClearViewText(void);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
};
#ifndef _DEBUG // debug version in SketcherView.cpp
inline CSketcherDoc* CSketcherView::GetDocument() const
{ return reinterpret_cast<CSketcherDoc*>(m_pDocument); }
#endif