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