diff options
Diffstat (limited to 'Bus')
-rw-r--r-- | Bus/IvyProbe/IvyProbe.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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();
+}
|