Old fashion design for PC-104
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.

86 lines
2.4 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/12/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ChicagoClient.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of ChicagoClient.cpp
  13. //----------------------------------------------------------------------------
  14. // ChicagoClient.cpp : Defines the class behaviors for the application.
  15. //
  16. #include "stdafx.h"
  17. #include "ChicagoClient.h"
  18. #include "ChicagoClientDlg.h"
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #endif
  22. // CChicagoClientApp
  23. BEGIN_MESSAGE_MAP(CChicagoClientApp, CWinApp)
  24. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  25. END_MESSAGE_MAP()
  26. // CChicagoClientApp construction
  27. CChicagoClientApp::CChicagoClientApp()
  28. {
  29. // TODO: add construction code here,
  30. // Place all significant initialization in InitInstance
  31. }
  32. // The one and only CChicagoClientApp object
  33. CChicagoClientApp theApp;
  34. // CChicagoClientApp initialization
  35. BOOL CChicagoClientApp::InitInstance()
  36. {
  37. // InitCommonControls() is required on Windows XP if an application
  38. // manifest specifies use of ComCtl32.dll version 6 or later to enable
  39. // visual styles. Otherwise, any window creation will fail.
  40. InitCommonControls();
  41. CWinApp::InitInstance();
  42. AfxEnableControlContainer();
  43. // Standard initialization
  44. // If you are not using these features and wish to reduce the size
  45. // of your final executable, you should remove from the following
  46. // the specific initialization routines you do not need
  47. // Change the registry key under which our settings are stored
  48. // TODO: You should modify this string to be something appropriate
  49. // such as the name of your company or organization
  50. SetRegistryKey(_T("Local AppWizard-Generated Applications"));
  51. CChicagoClientDlg dlg;
  52. m_pMainWnd = &dlg;
  53. INT_PTR nResponse = dlg.DoModal();
  54. if (nResponse == IDOK)
  55. {
  56. // TODO: Place code here to handle when the dialog is
  57. // dismissed with OK
  58. }
  59. else if (nResponse == IDCANCEL)
  60. {
  61. // TODO: Place code here to handle when the dialog is
  62. // dismissed with Cancel
  63. }
  64. // Since the dialog has been closed, return FALSE so that we exit the
  65. // application, rather than start the application's message pump.
  66. return FALSE;
  67. }