Leaked source code of windows server 2003
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.

82 lines
2.2 KiB

  1. // t3test.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "t3test.h"
  5. #include "t3testD.h"
  6. #ifdef _DEBUG
  7. #ifndef _WIN64 // mfc 4.2's heap debugging features generate warnings on win64
  8. #define new DEBUG_NEW
  9. #endif
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. CWnd * gpmainwnd;
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CT3testApp
  16. BEGIN_MESSAGE_MAP(CT3testApp, CWinApp)
  17. //{{AFX_MSG_MAP(CT3testApp)
  18. // NOTE - the ClassWizard will add and remove mapping macros here.
  19. // DO NOT EDIT what you see in these blocks of generated code!
  20. //}}AFX_MSG
  21. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  22. END_MESSAGE_MAP()
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CT3testApp construction
  25. CT3testApp::CT3testApp()
  26. {
  27. // TODO: add construction code here,
  28. // Place all significant initialization in InitInstance
  29. }
  30. /////////////////////////////////////////////////////////////////////////////
  31. // The one and only CT3testApp object
  32. CT3testApp theApp;
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CT3testApp initialization
  35. BOOL CT3testApp::InitInstance()
  36. {
  37. AfxEnableControlContainer();
  38. // Standard initialization
  39. // If you are not using these features and wish to reduce the size
  40. // of your final executable, you should remove from the following
  41. // the specific initialization routines you do not need.
  42. #ifdef _AFXDLL
  43. Enable3dControls(); // Call this when using MFC in a shared DLL
  44. #else
  45. Enable3dControlsStatic(); // Call this when linking to MFC statically
  46. #endif
  47. CT3testDlg dlg;
  48. m_pMainWnd = &dlg;
  49. gpmainwnd = &dlg;
  50. int nResponse = 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. }