Source code of Windows XP (NT5)
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
1.9 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. // c2cfg.cpp : Defines the class behaviors for the application.
  3. //
  4. #include "stdafx.h"
  5. #include "c2cfg.h"
  6. #include "c2cfgDlg.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CC2cfgApp
  14. BEGIN_MESSAGE_MAP(CC2cfgApp, CWinApp)
  15. //{{AFX_MSG_MAP(CC2cfgApp)
  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. // CC2cfgApp construction
  23. CC2cfgApp::CC2cfgApp()
  24. {
  25. // TODO: add construction code here,
  26. // Place all significant initialization in InitInstance
  27. }
  28. /////////////////////////////////////////////////////////////////////////////
  29. // The one and only CC2cfgApp object
  30. CC2cfgApp theApp;
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CC2cfgApp initialization
  33. BOOL CC2cfgApp::InitInstance()
  34. {
  35. // Standard initialization
  36. // If you are not using these features and wish to reduce the size
  37. // of your final executable, you should remove from the following
  38. // the specific initialization routines you do not need.
  39. #ifdef _AFXDLL
  40. Enable3dControls(); // Call this when using MFC in a shared DLL
  41. #else
  42. Enable3dControlsStatic(); // Call this when linking to MFC statically
  43. #endif
  44. CC2cfgDlg dlg;
  45. m_pMainWnd = &dlg;
  46. int nResponse = dlg.DoModal();
  47. if (nResponse == IDOK)
  48. {
  49. // TODO: Place code here to handle when the dialog is
  50. // dismissed with OK
  51. }
  52. else if (nResponse == IDCANCEL)
  53. {
  54. // TODO: Place code here to handle when the dialog is
  55. // dismissed with Cancel
  56. }
  57. // Since the dialog has been closed, return FALSE so that we exit the
  58. // application, rather than start the application's message pump.
  59. return FALSE;
  60. }