--- /dev/null
+/////////////////////////////////////////\r
+// TrayApp.h\r
+\r
+#ifndef TRAYAPP_H\r
+#define TRAYAPP_H\r
+\r
+#include "View.h"\r
+\r
+\r
+// Declaration of the CWinApp class\r
+class CTrayApp : public CWinApp\r
+{\r
+public:\r
+ CTrayApp();\r
+ virtual ~CTrayApp() {}\r
+ virtual BOOL InitInstance();\r
+ CView& GetView() { return m_View; }\r
+\r
+private:\r
+ CView m_View;\r
+};\r
+\r
+\r
+// returns a reference to the CTrayApp object\r
+inline CTrayApp& GetSimpleApp() { return *((CTrayApp*)GetApp()); }\r
+\r
+\r
+#endif // TRAYAPP_H\r