--- /dev/null
+//////////////////////////////////////////////////////\r
+// MDIChildSimple.h\r
+// Declaration of the CViewSimple and CMDIChildSimple class\r
+\r
+#ifndef MDICHILDVIEW_H\r
+#define MDICHILDVIEW_H\r
+\r
+\r
+// Declaration of CViewSimple\r
+class CViewSimple : public CWnd\r
+{\r
+public:\r
+ CViewSimple();\r
+ virtual void OnDraw(CDC* pDC);\r
+ virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+ \r
+ COLORREF GetColor() {return m_Color;}\r
+ void SetColor(COLORREF color) { m_Color = color; }\r
+\r
+private:\r
+ COLORREF m_Color;\r
+};\r
+\r
+\r
+// Declaration of CMDIChildSimple\r
+class CMDIChildSimple : public CMDIChild\r
+{\r
+public:\r
+ CMDIChildSimple();\r
+ virtual ~CMDIChildSimple();\r
+\r
+protected:\r
+ virtual int OnClose();\r
+ virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);\r
+ virtual void OnInitialUpdate();\r
+ virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+\r
+private:\r
+ CViewSimple m_View;\r
+};\r
+\r
+#endif //MDICHILDVIEW_H\r