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.

72 lines
1.9 KiB

  1. // dfuitest.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafxdfuitest.h"
  4. #include "dfuitest.h"
  5. #include "dfuitestdlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CDFUITestApp
  13. BEGIN_MESSAGE_MAP(CDFUITestApp, CWinApp)
  14. //{{AFX_MSG_MAP(CDFUITestApp)
  15. // NOTE - the ClassWizard will add and remove mapping macros here.
  16. // DO NOT EDIT what you see in these blocks of generated code!
  17. //}}AFX_MSG
  18. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CDFUITestApp construction
  22. CDFUITestApp::CDFUITestApp()
  23. {
  24. // TODO: add construction code here,
  25. // Place all significant initialization in InitInstance
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // The one and only CDFUITestApp object
  29. CDFUITestApp theApp;
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CDFUITestApp initialization
  32. BOOL CDFUITestApp::InitInstance()
  33. {
  34. // Standard initialization
  35. // If you are not using these features and wish to reduce the size
  36. // of your final executable, you should remove from the following
  37. // the specific initialization routines you do not need.
  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. CDFUITestDlg dlg;
  44. m_pMainWnd = &dlg;
  45. int nResponse = dlg.DoModal();
  46. if (nResponse == IDOK)
  47. {
  48. // TODO: Place code here to handle when the dialog is
  49. // dismissed with OK
  50. }
  51. else if (nResponse == IDCANCEL)
  52. {
  53. // TODO: Place code here to handle when the dialog is
  54. // dismissed with Cancel
  55. }
  56. // Since the dialog has been closed, return FALSE so that we exit the
  57. // application, rather than start the application's message pump.
  58. return FALSE;
  59. }