Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / tutorials / Tutorial4 / View.h
1 //////////////////////////////////////////////////////\r
2 // View.h\r
3 //  Declaration of the CView class\r
4 \r
5 #ifndef VIEW_H\r
6 #define VIEW_H\r
7 \r
8 #include "wincore.h"\r
9 #include <vector>\r
10 \r
11 using std::vector;\r
12 \r
13 \r
14 class CView : public CWnd\r
15 {\r
16 public:\r
17         CView();\r
18         virtual ~CView(){}\r
19 \r
20 protected:\r
21         virtual void OnDraw(CDC* pDC);\r
22         virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
23 \r
24 private:\r
25         struct PlotPoint\r
26         {\r
27                 int x;\r
28                 int y;\r
29                 bool PenDown;\r
30         };\r
31 \r
32         void DrawLine(int x, int y);\r
33         void OnLButtonDown(LPARAM lParam);\r
34         void OnLButtonUp(LPARAM lParam);\r
35         void OnMouseMove(WPARAM wParam, LPARAM lParam);\r
36         void StorePoint(int x, int y, bool PenDown);\r
37 \r
38         vector<PlotPoint> m_points;     // Points of lines to draw\r
39 };\r
40 \r
41 \r
42 #endif // CVIEW_H\r

UCC git Repository :: git.ucc.asn.au