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.

78 lines
2.0 KiB

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