--- /dev/null
+//////////////////////////////////////\r
+// DockingApp.h\r
+\r
+\r
+#ifndef DOCKINGAPP_H\r
+#define DOCKINGAPP_H\r
+\r
+\r
+#include "Mainfrm.h"\r
+\r
+\r
+class CDockingApp : public CWinApp\r
+{\r
+public:\r
+ CDockingApp();\r
+ virtual ~CDockingApp() {}\r
+ virtual BOOL InitInstance();\r
+ CMainFrame& GetMainFrame() { return m_MainFrame; }\r
+\r
+private:\r
+ CMainFrame m_MainFrame;\r
+\r
+};\r
+\r
+\r
+// returns a reference to the CDockingApp object\r
+inline CDockingApp& GetDockApp() { return *((CDockingApp*)GetApp()); }\r
+\r
+\r
+#endif // DOCKINGAPP_H\r