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.

79 lines
2.2 KiB

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