From 179334803ebf8c0a72789f7b4bc80bde747d5592 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:09:17 +0000 Subject: Utilisateur : Fcolin Date : 18/12/98 Heure : 18:48 Créé (vss 1) --- IvyProbe/IvyProbe.cpp | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 IvyProbe/IvyProbe.cpp (limited to 'IvyProbe/IvyProbe.cpp') diff --git a/IvyProbe/IvyProbe.cpp b/IvyProbe/IvyProbe.cpp new file mode 100644 index 0000000..68259e6 --- /dev/null +++ b/IvyProbe/IvyProbe.cpp @@ -0,0 +1,83 @@ +// Test.cpp : Defines the class behaviors for the application. +// + +#include "stdafx.h" +#include "Test.h" +#include "TestDlg.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CTestApp + +BEGIN_MESSAGE_MAP(CTestApp, CWinApp) + //{{AFX_MSG_MAP(CTestApp) + // NOTE - the ClassWizard will add and remove mapping macros here. + // DO NOT EDIT what you see in these blocks of generated code! + //}}AFX_MSG + ON_COMMAND(ID_HELP, CWinApp::OnHelp) +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CTestApp construction + +CTestApp::CTestApp() +{ + // TODO: add construction code here, + // Place all significant initialization in InitInstance +} + +///////////////////////////////////////////////////////////////////////////// +// The one and only CTestApp object + +CTestApp theApp; + +///////////////////////////////////////////////////////////////////////////// +// CTestApp initialization + +BOOL CTestApp::InitInstance() +{ + // CG: The following block was added by the Windows Sockets component. + { + if (!AfxSocketInit()) + { + AfxMessageBox(CG_IDS_SOCKETS_INIT_FAILED); + return FALSE; + } + + } + AfxEnableControlContainer(); + + // Standard initialization + // If you are not using these features and wish to reduce the size + // of your final executable, you should remove from the following + // the specific initialization routines you do not need. + +#ifdef _AFXDLL + Enable3dControls(); // Call this when using MFC in a shared DLL +#else + Enable3dControlsStatic(); // Call this when linking to MFC statically +#endif + + CTestDlg dlg; + m_pMainWnd = &dlg; + int nResponse = dlg.DoModal(); + if (nResponse == IDOK) + { + // TODO: Place code here to handle when the dialog is + // dismissed with OK + } + else if (nResponse == IDCANCEL) + { + // TODO: Place code here to handle when the dialog is + // dismissed with Cancel + } + + // Since the dialog has been closed, return FALSE so that we exit the + // application, rather than start the application's message pump. + return FALSE; +} -- cgit v1.1 From e6a2d8e3d46e0ce4a5d94a261066ffcdfd76ecda Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:09:18 +0000 Subject: Utilisateur : Fcolin Date : 19/02/01 Heure : 10:39 Archivé dans $/Bus/Test (vss 2) --- IvyProbe/IvyProbe.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'IvyProbe/IvyProbe.cpp') diff --git a/IvyProbe/IvyProbe.cpp b/IvyProbe/IvyProbe.cpp index 68259e6..e0afcfb 100644 --- a/IvyProbe/IvyProbe.cpp +++ b/IvyProbe/IvyProbe.cpp @@ -16,6 +16,7 @@ static char THIS_FILE[] = __FILE__; BEGIN_MESSAGE_MAP(CTestApp, CWinApp) //{{AFX_MSG_MAP(CTestApp) + ON_COMMAND(ID_APP_ABOUT, OnAppAbout) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG @@ -56,12 +57,13 @@ BOOL CTestApp::InitInstance() // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. - +#ifndef UNDER_CE #ifdef _AFXDLL Enable3dControls(); // Call this when using MFC in a shared DLL #else Enable3dControlsStatic(); // Call this when linking to MFC statically #endif +#endif CTestDlg dlg; m_pMainWnd = &dlg; @@ -81,3 +83,9 @@ BOOL CTestApp::InitInstance() // application, rather than start the application's message pump. return FALSE; } +// App command to run the dialog +void CTestApp::OnAppAbout() +{ + CAboutDlg aboutDlg; + aboutDlg.DoModal(); +} -- cgit v1.1 From 2e62a1c09769fbbc11af46310f1ac4f429294298 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:09:20 +0000 Subject: Utilisateur : Fcolin Date : 13/01/03 Heure : 15:28 Archivé dans $/Bus/IvyProbe Commentaire: (vss 3) --- IvyProbe/IvyProbe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IvyProbe/IvyProbe.cpp') diff --git a/IvyProbe/IvyProbe.cpp b/IvyProbe/IvyProbe.cpp index e0afcfb..00eca87 100644 --- a/IvyProbe/IvyProbe.cpp +++ b/IvyProbe/IvyProbe.cpp @@ -59,9 +59,9 @@ BOOL CTestApp::InitInstance() // the specific initialization routines you do not need. #ifndef UNDER_CE #ifdef _AFXDLL - Enable3dControls(); // Call this when using MFC in a shared DLL + //Enable3dControls(); // Call this when using MFC in a shared DLL #else - Enable3dControlsStatic(); // Call this when linking to MFC statically + //Enable3dControlsStatic(); // Call this when linking to MFC statically #endif #endif -- cgit v1.1 From be6b2906b41ec652689fa946e84d70fc1f882df4 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:09:22 +0000 Subject: Utilisateur : Fcolin Date : 21/02/03 Heure : 16:31 Archivé dans $/Bus/IvyProbe Commentaire: (vss 4) --- IvyProbe/IvyProbe.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'IvyProbe/IvyProbe.cpp') 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(); -- cgit v1.1 From b85b4621a4e9c6103a56aaf80a3215b93b93b517 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:09:24 +0000 Subject: Utilisateur : Fcolin Date : 26/02/03 Heure : 16:40 Archivé dans $/Bus/IvyProbe Commentaire: suppression bouton clock start (vss 5) --- IvyProbe/IvyProbe.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IvyProbe/IvyProbe.cpp') diff --git a/IvyProbe/IvyProbe.cpp b/IvyProbe/IvyProbe.cpp index f201abc..2365dd4 100644 --- a/IvyProbe/IvyProbe.cpp +++ b/IvyProbe/IvyProbe.cpp @@ -42,6 +42,9 @@ CIvyProbeApp theApp; BOOL CIvyProbeApp::InitInstance() { + InitCommonControls(); + CWinApp::InitInstance(); + // CG: The following block was added by the Windows Sockets component. { if (!AfxSocketInit()) @@ -60,7 +63,6 @@ BOOL CIvyProbeApp::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 -- cgit v1.1 From 8b4407ef34db1f87fffbd42d160a1e66904b17e8 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:09:26 +0000 Subject: Utilisateur : Fcolin Date : 1/06/05 Heure : 16:45 Archivé dans $/Bus/IvyProbe Commentaire: (vss 6) --- IvyProbe/IvyProbe.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'IvyProbe/IvyProbe.cpp') diff --git a/IvyProbe/IvyProbe.cpp b/IvyProbe/IvyProbe.cpp index 2365dd4..df84f85 100644 --- a/IvyProbe/IvyProbe.cpp +++ b/IvyProbe/IvyProbe.cpp @@ -54,19 +54,6 @@ BOOL CIvyProbeApp::InitInstance() } } - //AfxEnableControlContainer(); - - // Standard initialization - // If you are not using these features and wish to reduce the size - // of your final executable, you should remove from the following - // the specific initialization routines you do not need. -#ifndef UNDER_CE -#ifdef _AFXDLL - //Enable3dControls(); // Call this when using MFC in a shared DLL -#else - //Enable3dControlsStatic(); // Call this when linking to MFC statically -#endif -#endif CIvyProbeDlg dlg; m_pMainWnd = &dlg; -- cgit v1.1