Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

  1. // amisafe.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "amisafe.h"
  5. #include "amisafeDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CAmisafeApp
  13. BEGIN_MESSAGE_MAP(CAmisafeApp, CWinApp)
  14. //{{AFX_MSG_MAP(CAmisafeApp)
  15. //}}AFX_MSG
  16. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  17. END_MESSAGE_MAP()
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CAmisafeApp construction
  20. CAmisafeApp::CAmisafeApp()
  21. {
  22. }
  23. /////////////////////////////////////////////////////////////////////////////
  24. // The one and only CAmisafeApp object
  25. CAmisafeApp theApp;
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CAmisafeApp initialization
  28. BOOL CAmisafeApp::InitInstance()
  29. {
  30. // Standard initialization
  31. CAmisafeDlg dlg;
  32. m_pMainWnd = &dlg;
  33. int nResponse = dlg.DoModal();
  34. if (nResponse == IDOK)
  35. {
  36. }
  37. else if (nResponse == IDCANCEL)
  38. {
  39. }
  40. // Since the dialog has been closed, return FALSE so that we exit the
  41. // application, rather than start the application's message pump.
  42. return FALSE;
  43. }