Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / FastGDI / src / View.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/samples/FastGDI/src/View.h b/research/transmission_spectroscopy/TOF/Win32++/samples/FastGDI/src/View.h
new file mode 100644 (file)
index 0000000..c6f6718
--- /dev/null
@@ -0,0 +1,38 @@
+//////////////////////////////////////////////////////\r
+// View.h\r
+\r
+#ifndef VIEW_H\r
+#define VIEW_H\r
+\r
+\r
+#include "ColourDialog.h"\r
+\r
+\r
+// Declaration of the CView class\r
+class CView : public CWnd\r
+{\r
+public:\r
+       CView();\r
+       virtual ~CView();\r
+       virtual BOOL FileOpen(LPCTSTR szFilename);\r
+       virtual BOOL FileSave(LPCTSTR pszFile);\r
+       HBITMAP GetImage() {return m_bmImage;}\r
+       virtual CRect GetImageRect();\r
+\r
+protected:\r
+       virtual void OnHScroll(WPARAM wParam, LPARAM lParam);\r
+       virtual void OnDraw(CDC* pDC);  \r
+       virtual void OnInitialUpdate();\r
+       virtual void OnVScroll(WPARAM wParam, LPARAM lParam);\r
+       virtual void OnWindowPosChanged(WPARAM wParam, LPARAM lParam);\r
+       virtual void PreCreate(CREATESTRUCT &cs);\r
+       virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+\r
+private:\r
+       CBitmap m_bmImage;\r
+       int m_xCurrentScroll;\r
+       int m_yCurrentScroll;\r
+};\r
+\r
+\r
+#endif // VIEW_H\r

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