Team Fortress 2 Source Code as on 22/4/2020
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.

73 lines
2.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. // QC_Eyes.cpp : Defines the class behaviors for the application.
  3. //
  4. #include "stdafx.h"
  5. #include "QC_Eyes.h"
  6. #include "QC_EyesDlg.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CQC_EyesApp
  14. BEGIN_MESSAGE_MAP(CQC_EyesApp, CWinApp)
  15. //{{AFX_MSG_MAP(CQC_EyesApp)
  16. // NOTE - the ClassWizard will add and remove mapping macros here.
  17. // DO NOT EDIT what you see in these blocks of generated code!
  18. //}}AFX_MSG
  19. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  20. END_MESSAGE_MAP()
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CQC_EyesApp construction
  23. CQC_EyesApp::CQC_EyesApp()
  24. {
  25. // TODO: add construction code here,
  26. // Place all significant initialization in InitInstance
  27. }
  28. /////////////////////////////////////////////////////////////////////////////
  29. // The one and only CQC_EyesApp object
  30. CQC_EyesApp theApp;
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CQC_EyesApp initialization
  33. BOOL CQC_EyesApp::InitInstance()
  34. {
  35. AfxEnableControlContainer();
  36. // Standard initialization
  37. // If you are not using these features and wish to reduce the size
  38. // of your final executable, you should remove from the following
  39. // the specific initialization routines you do not need.
  40. #ifdef _AFXDLL
  41. Enable3dControls(); // Call this when using MFC in a shared DLL
  42. #endif
  43. CQC_EyesDlg dlg;
  44. m_pMainWnd = &dlg;
  45. INT_PTR nResponse = dlg.DoModal();
  46. if (nResponse == IDOK)
  47. {
  48. // TODO: Place code here to handle when the dialog is
  49. // dismissed with OK
  50. }
  51. else if (nResponse == IDCANCEL)
  52. {
  53. // TODO: Place code here to handle when the dialog is
  54. // dismissed with Cancel
  55. }
  56. // Since the dialog has been closed, return FALSE so that we exit the
  57. // application, rather than start the application's message pump.
  58. return FALSE;
  59. }