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

31 lines
532 B
C++

//////////////////////////////////////////////////
// DialogApp.h
// Declaration of the CDialogApp class
#ifndef DIALOGAPP_H
#define DIALOGAPP_H
#include "dialog.h"
#include "MyDialog.h"
class CDialogApp : public CWinApp
{
public:
CDialogApp();
virtual ~CDialogApp();
virtual BOOL InitInstance();
CMyDialog& GetDlg() { return MyDialog; }
private:
CMyDialog MyDialog;
};
// returns a reference to the CDialogApp object
inline CDialogApp& GetDlgApp() { return *((CDialogApp*)GetApp()); }
#endif // define DIALOGAPP_H