-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRightView.h
More file actions
74 lines (56 loc) · 1.66 KB
/
RightView.h
File metadata and controls
74 lines (56 loc) · 1.66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// RightView.h : interface of the CRightView class
//
#pragma once
#include "DataStructures.h"
class CDoc;
class CRightView : public CScrollView
{
Scribble *mTempScribble;
PolygonF *mTempPolygon;
CPoint mPrevPoint;
protected: // create from serialization only
CRightView();
DECLARE_DYNCREATE(CRightView)
int mMouseDown;
// Attributes
public:
CDoc* GetDocument() const;
// Operations
public:
// Overrides
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// Implementation
public:
virtual ~CRightView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
public:
int mWidth;
int mHeight;
uchar* mData;
bool mDrawBorder;
bool mDrawMasks;
void SetImageData(int width, int height, uchar* data, bool drawSrcibbles = false, bool drawMasks = false);
void ClearScreen();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
};
#ifndef _DEBUG // debug version in RightView.cpp
inline CDoc* CRightView::GetDocument() const
{ return reinterpret_cast<CDoc*>(m_pDocument); }
#endif