summaryrefslogtreecommitdiff
path: root/IvyProbe
diff options
context:
space:
mode:
Diffstat (limited to 'IvyProbe')
-rw-r--r--IvyProbe/IvyProbe.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/IvyProbe/IvyProbe.cpp b/IvyProbe/IvyProbe.cpp
index 00eca87..f201abc 100644
--- a/IvyProbe/IvyProbe.cpp
+++ b/IvyProbe/IvyProbe.cpp
@@ -2,8 +2,8 @@
//
#include "stdafx.h"
-#include "Test.h"
-#include "TestDlg.h"
+#include "IvyProbe.h"
+#include "IvyProbeDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -14,7 +14,7 @@ static char THIS_FILE[] = __FILE__;
/////////////////////////////////////////////////////////////////////////////
// CTestApp
-BEGIN_MESSAGE_MAP(CTestApp, CWinApp)
+BEGIN_MESSAGE_MAP(CIvyProbeApp, CWinApp)
//{{AFX_MSG_MAP(CTestApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
@@ -26,7 +26,7 @@ END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTestApp construction
-CTestApp::CTestApp()
+CIvyProbeApp::CIvyProbeApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
@@ -35,12 +35,12 @@ CTestApp::CTestApp()
/////////////////////////////////////////////////////////////////////////////
// The one and only CTestApp object
-CTestApp theApp;
+CIvyProbeApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CTestApp initialization
-BOOL CTestApp::InitInstance()
+BOOL CIvyProbeApp::InitInstance()
{
// CG: The following block was added by the Windows Sockets component.
{
@@ -51,7 +51,7 @@ BOOL CTestApp::InitInstance()
}
}
- AfxEnableControlContainer();
+ //AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
@@ -60,12 +60,13 @@ BOOL CTestApp::InitInstance()
#ifndef UNDER_CE
#ifdef _AFXDLL
//Enable3dControls(); // Call this when using MFC in a shared DLL
+ InitCommonControls();
#else
//Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
#endif
- CTestDlg dlg;
+ CIvyProbeDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
@@ -84,7 +85,7 @@ BOOL CTestApp::InitInstance()
return FALSE;
}
// App command to run the dialog
-void CTestApp::OnAppAbout()
+void CIvyProbeApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();