Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / WCE samples / Scribble / MainFrm.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/WCE samples/Scribble/MainFrm.h b/research/transmission_spectroscopy/TOF/Win32++/WCE samples/Scribble/MainFrm.h
new file mode 100644 (file)
index 0000000..e306198
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef VIEW_H\r
+#define VIEW_H\r
+\r
+\r
+#include "wincore.h"\r
+#include "wceframe.h"\r
+#include "dialog.h"\r
+#include <vector>\r
+\r
+\r
+class CMainFrame : public CWceFrame\r
+{\r
+public:\r
+       CMainFrame();\r
+       virtual ~CMainFrame() {}\r
+       virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);\r
+       virtual void OnInitialUpdate();\r
+       virtual void SetPen(COLORREF Color);\r
+\r
+protected:\r
+       virtual void DrawLine(short x, short y);\r
+       virtual void OnDraw(CDC* pDC);  \r
+       virtual void OnLButtonDown(WPARAM wParam, LPARAM lParam);\r
+       virtual void OnLButtonUp(WPARAM wParam, LPARAM lParam);\r
+       virtual void OnMouseMove(WPARAM wParam, LPARAM lParam);\r
+       virtual void StorePoint(int x, int y, bool PenDown);\r
+       virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+\r
+private:\r
+       struct PlotPoint\r
+       {\r
+               short x;\r
+               short y;\r
+               bool PenDown;\r
+               COLORREF color;\r
+       };\r
+\r
+       std::vector<PlotPoint> m_points;        // Points of lines to draw\r
+       COLORREF m_PenColor;\r
+};\r
+\r
+#endif   //VIEW_H\r

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