--- /dev/null
+#ifndef SIMPLEAPP_H\r
+#define SIMPLEAPP_H\r
+\r
+#include "wincore.h"\r
+#include "MainFrm.h"\r
+\r
+\r
+class CWceFrameApp : public CWinApp\r
+{\r
+public:\r
+ CWceFrameApp();\r
+ virtual ~CWceFrameApp() {}\r
+ virtual BOOL InitInstance();\r
+ CMainFrame& GetMainFrame() { return m_Frame; }\r
+\r
+private:\r
+ CMainFrame m_Frame;\r
+};\r
+\r
+\r
+// returns a reference to the CWceFrameApp object\r
+inline CWceFrameApp& GetFrameApp() { return *((CWceFrameApp*)GetApp()); }\r
+\r
+\r
+#endif //SIMPLEAPP_H\r
+\r