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.

75 lines
2.1 KiB

  1. // exctrlst.cpp : Defines the class behaviors for the application.
  2. //
  3. #ifndef UNICODE
  4. #define UNICODE 1
  5. #endif
  6. #ifndef _UNICODE
  7. #define _UNICODE 1
  8. #endif
  9. #include "stdafx.h"
  10. #include "exctrlst.h"
  11. #include "exctrdlg.h"
  12. #ifdef _DEBUG
  13. #undef THIS_FILE
  14. static char BASED_CODE THIS_FILE[] = __FILE__;
  15. #endif
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CExctrlstApp
  18. BEGIN_MESSAGE_MAP(CExctrlstApp, CWinApp)
  19. //{{AFX_MSG_MAP(CExctrlstApp)
  20. // NOTE - the ClassWizard will add and remove mapping macros here.
  21. // DO NOT EDIT what you see in these blocks of generated code!
  22. //}}AFX_MSG
  23. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  24. END_MESSAGE_MAP()
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CExctrlstApp construction
  27. CExctrlstApp::CExctrlstApp()
  28. {
  29. // TODO: add construction code here,
  30. // Place all significant initialization in InitInstance
  31. }
  32. /////////////////////////////////////////////////////////////////////////////
  33. // The one and only CExctrlstApp object
  34. CExctrlstApp theApp;
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CExctrlstApp initialization
  37. BOOL CExctrlstApp::InitInstance()
  38. {
  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. Enable3dControls();
  44. LoadStdProfileSettings(); // Load standard INI file options (including MRU)
  45. CExctrlstDlg dlg;
  46. m_pMainWnd = &dlg;
  47. INT_PTR 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. }