--- /dev/null
+//////////////////////////////////////////////////////\r
+// SimpleMDIChild.h\r
+// Declaration of the CSimpleView and CSimpleMDIChild class\r
+\r
+#ifndef MDICHILDVIEW_H\r
+#define MDICHILDVIEW_H\r
+\r
+\r
+\r
+// Declaration of CSimpleView\r
+class CSimpleView : public CWnd\r
+{\r
+public:\r
+ CSimpleView();\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
+// Declaration of the CDockSimple class\r
+class CDockSimple : public CDocker\r
+{\r
+public:\r
+ CDockSimple() {SetView(m_View);}\r
+ virtual ~CDockSimple() {}\r
+\r
+protected:\r
+// virtual CDocker* NewDockerFromID(int nID);\r
+// virtual void OnInitialUpdate();\r
+\r
+private:\r
+ CSimpleView m_View;\r
+\r
+};\r
+\r
+// Declaration of CSimpleMDIChild\r
+class CSimpleMDIChild : public CMDIChild\r
+{\r
+public:\r
+ CSimpleMDIChild();\r
+ virtual ~CSimpleMDIChild();\r
+\r
+protected:\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
+ CDockSimple m_View;\r
+};\r
+\r
+#endif //MDICHILDVIEW_H\r