Update-Installer/external/win32cpp/WCE samples/Simple/SimpleApp.h

26 lines
415 B
C
Raw Normal View History

#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