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.

83 lines
2.0 KiB

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