--- /dev/null
+\r
+#include "MyDialog.h"\r
+#include "resource.h"\r
+\r
+\r
+\r
+CMyDialog::CMyDialog(UINT nResID, CWnd* pParent)\r
+ : CDialog(nResID, pParent)\r
+{\r
+}\r
+\r
+CMyDialog::~CMyDialog()\r
+{\r
+}\r
+\r
+\r
+BOOL CMyDialog::OnInitDialog()\r
+{\r
+ // This function is called before the dialog is displayed.\r
+\r
+\r
+ //Set the Icon\r
+ SetIconLarge(IDW_MAIN);\r
+ SetIconSmall(IDW_MAIN);\r
+\r
+ return true;\r
+}\r
+\r
+void CMyDialog::OnOK()\r
+{\r
+ ::MessageBox(NULL, TEXT("DONE Button Pressed. Program will exit now."), TEXT("Button"), MB_OK);\r
+ CDialog::OnOK();\r
+}\r
+\r
+INT_PTR CMyDialog::DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam)\r
+{\r
+// Add any messages to be handled inside the switch statement\r
+\r
+\r
+// switch (uMsg)\r
+// {\r
+//\r
+// } // switch(uMsg)\r
+ \r
+ return DialogProcDefault(uMsg, wParam, lParam);\r
+ \r
+} // INT_PTR CALLBACK DialogProc(...)\r
+\r
+\r