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