Update-Installer/external/win32cpp/WCE samples/Subclass/SubclassApp.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

29 lines
519 B
C++

//////////////////////////////////////////////////
// SubclassApp.h
// Declaration of the CSubApp class
#ifndef SUBCLASSAPP_H
#define SUBCLASSAPP_H
#include "MainWin.h"
class CSubclassApp : public CWinApp
{
public:
CSubclassApp();
virtual ~CSubclassApp();
virtual BOOL InitInstance();
CMainWin& GetWin() { return m_Win; }
private:
CMainWin m_Win;
};
// returns a reference to the CSubclassApp object
inline CSubclassApp& GetSubApp() { return *((CSubclassApp*)GetApp()); }
#endif // define SUBCLASSAPP_H