From 4aa76ea70b9ce90b3517c98b2a79281e87d27ffc 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) --- Bus/IvyProbe/IvyProbe.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Bus/IvyProbe/IvyProbe.cpp b/Bus/IvyProbe/IvyProbe.cpp index 68259e6..e0afcfb 100644 --- a/Bus/IvyProbe/IvyProbe.cpp +++ b/Bus/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