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.

77 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // MessageWatch.cpp : Defines the class behaviors for the application.
  9. //
  10. #include "stdafx.h"
  11. #include "MessageWatch.h"
  12. #include "MessageWatchDlg.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CMessageWatchApp
  20. BEGIN_MESSAGE_MAP(CMessageWatchApp, CWinApp)
  21. //{{AFX_MSG_MAP(CMessageWatchApp)
  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. // CMessageWatchApp construction
  29. CMessageWatchApp::CMessageWatchApp()
  30. {
  31. // TODO: add construction code here,
  32. // Place all significant initialization in InitInstance
  33. }
  34. /////////////////////////////////////////////////////////////////////////////
  35. // The one and only CMessageWatchApp object
  36. CMessageWatchApp theApp;
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CMessageWatchApp initialization
  39. BOOL CMessageWatchApp::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. CMessageWatchDlg 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. return FALSE;
  64. }