Update-Installer/external/win32cpp/WCE samples/Simple/SimpleApp.h
Robert Knight d16da069e9 Add Win++ library to external
This is a thin wrapper around the Win32 API used in the Win32
Updater Dialog implementation.
2011-08-23 19:54:52 +01:00

25 lines
415 B
C++

#ifndef SIMPLEAPP_H
#define SIMPLEAPP_H
#include "wincore.h"
#include "view.h"
class CSimpleApp : public CWinApp
{
public:
CSimpleApp();
virtual ~CSimpleApp() {}
virtual BOOL InitInstance();
CView& GetView() { return m_View; }
private:
CView m_View;
};
// returns a reference to the CSimpleApp object
inline CSimpleApp& GetSimpleApp() { return *((CSimpleApp*)GetApp()); }
#endif //SIMPLEAPP_H