Update-Installer/external/win32cpp/WCE samples/DlgSubclass/DlgSubclassApp.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
554 B
C++

///////////////////////////////////////
// DlgSubclassApp.h
#ifndef DLGSUBCLASSAPP_H
#define DLGSUBCLASSAPP_H
#include "MyDialog.h"
// Declaration of the CDialogApp class
class CDlgSubclassApp : public CWinApp
{
public:
CDlgSubclassApp();
virtual ~CDlgSubclassApp();
virtual BOOL InitInstance();
CMyDialog& GetDialog() {return m_MyDialog;}
private:
CMyDialog m_MyDialog;
};
// returns a reference to the CDlgSubclassApp object
inline CDlgSubclassApp& GetSubApp() { return *((CDlgSubclassApp*)GetApp()); }
#endif // define DLGSUBCLASSAPP_H