-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChildView.h
More file actions
58 lines (43 loc) · 1.06 KB
/
ChildView.h
File metadata and controls
58 lines (43 loc) · 1.06 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
// ChildView.h : interface of the CChildView class
//
#pragma once
#include "Shape.h"
#include <vector>
// CChildView window
class CChildView : public CWnd
{
// Construction
public:
CChildView();
// Attributes
public:
// Operations
public:
// Overrides
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
// Implementation
public:
virtual ~CChildView();
CPoint StartPoint, LastPoint;
Shape *currentShape;
enum CMouseMode { Ready, Clicked, Moving } MouseMode;
void Reset();
public:
void RedrawShapes();
// Generated message map functions
protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP()
private:
void DrawFinal(CPoint EndPoint);
void DrawAuxiliary(CPoint EndPoint);
//int tmpxmin, tmpymin, tmpxmax, tmpymax;
public:
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 OnSize(UINT nType, int cx, int cy);
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
};