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.

70 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // syncfrommirror.cpp : Defines the class behaviors for the application.
  9. //
  10. #include "stdafx.h"
  11. #include "syncfrommirror.h"
  12. #include "syncfrommirrorDlg.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CSyncfrommirrorApp
  20. BEGIN_MESSAGE_MAP(CSyncfrommirrorApp, CWinApp)
  21. //{{AFX_MSG_MAP(CSyncfrommirrorApp)
  22. //}}AFX_MSG
  23. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  24. END_MESSAGE_MAP()
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CSyncfrommirrorApp construction
  27. CSyncfrommirrorApp::CSyncfrommirrorApp()
  28. {
  29. }
  30. /////////////////////////////////////////////////////////////////////////////
  31. // The one and only CSyncfrommirrorApp object
  32. CSyncfrommirrorApp theApp;
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CSyncfrommirrorApp initialization
  35. BOOL CSyncfrommirrorApp::InitInstance()
  36. {
  37. // Standard initialization
  38. #ifdef _AFXDLL
  39. Enable3dControls(); // Call this when using MFC in a shared DLL
  40. #else
  41. Enable3dControlsStatic(); // Call this when linking to MFC statically
  42. #endif
  43. AfxInitRichEdit();
  44. SetRegistryKey( "Valve" );
  45. CSyncfrommirrorDlg dlg;
  46. m_pMainWnd = &dlg;
  47. int nResponse = dlg.DoModal();
  48. if (nResponse == IDOK)
  49. {
  50. }
  51. else if (nResponse == IDCANCEL)
  52. {
  53. }
  54. // Since the dialog has been closed, return FALSE so that we exit the
  55. // application, rather than start the application's message pump.
  56. return FALSE;
  57. }