--- /dev/null
+///////////////////////////////////////\r
+// DlgSubclassApp.cpp\r
+\r
+#include "stdafx.h"\r
+#include "resource.h"\r
+#include "DialogDemoApp.h"\r
+\r
+\r
+// Definitions for the CDialogApp class\r
+CDialogDemoApp::CDialogDemoApp() : m_MyDialog(IDD_DIALOG1)\r
+{\r
+}\r
+\r
+CDialogDemoApp::~CDialogDemoApp()\r
+{\r
+}\r
+\r
+BOOL CDialogDemoApp::InitInstance()\r
+{\r
+ //Display the Modal Dialog\r
+ m_MyDialog.DoModal();\r
+\r
+ //End the program\r
+ ::PostQuitMessage(0);\r
+\r
+ return TRUE;\r
+}\r
+\r