--- /dev/null
+//////////////////////////////////////////////////////\r
+// Simple.cpp - Definitions for the CViewSimple class\r
+\r
+#include "stdafx.h"\r
+#include "Simple.h"\r
+#include "resource.h"\r
+\r
+\r
+\r
+///////////////////////////////////////////////\r
+// CViewSimple functions\r
+void CViewSimple::OnDraw(CDC* pDC)\r
+{\r
+ //Centre some text in the window\r
+ CRect rc = GetClientRect();\r
+ pDC->DrawText(_T("Simple View"), -1, rc, DT_CENTER|DT_VCENTER|DT_SINGLELINE);\r
+}\r
+\r
+LRESULT CViewSimple::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)\r
+{\r
+ switch(uMsg)\r
+ {\r
+ case WM_SIZE:\r
+ Invalidate();\r
+ break;\r
+ \r
+ case WM_WINDOWPOSCHANGED:\r
+ Invalidate();\r
+ break;\r
+ }\r
+\r
+ return WndProcDefault(uMsg, wParam, lParam);\r
+}\r
+\r