1 //////////////////////////////////////////////////////
\r
3 // Declaration of the CView class
\r
14 class CView : public CWnd
\r
19 virtual void ClearPoints();
\r
20 virtual BOOL FileOpen(LPCTSTR szFilename);
\r
21 virtual BOOL FileSave(LPCTSTR szFilename);
\r
22 virtual void SetPen(COLORREF Color);
\r
25 virtual void OnDraw(CDC* pDC);
\r
26 virtual void PreCreate(CREATESTRUCT &cs);
\r
27 virtual void PreRegisterClass(WNDCLASS &wc);
\r
28 virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
\r
39 void DrawLine(int x, int y);
\r
40 void OnLButtonDown(LPARAM lParam);
\r
41 void OnLButtonUp(LPARAM lParam);
\r
42 void OnMouseMove(WPARAM wParam, LPARAM lParam);
\r
43 void StorePoint(int x, int y, bool PenDown);
\r
46 vector<PlotPoint> m_points; // Points of lines to draw
\r
47 COLORREF m_PenColor;
\r