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.

102 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. asr_fmt.cpp
  5. Abstract:
  6. Main entry point for asr_fmt.
  7. Authors:
  8. Steve DeVos (Veritas) (v-stevde) 15-May-1998
  9. Guhan Suriyanarayanan (guhans) 21-Aug-1999
  10. Environment:
  11. User-mode only.
  12. Revision History:
  13. 15-May-1998 v-stevde Initial creation
  14. 21-Aug-1999 guhans Minor clean up.
  15. --*/
  16. #include "stdafx.h"
  17. #include "asr_fmt.h"
  18. #include "asr_dlg.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CAsr_fmtApp
  21. BEGIN_MESSAGE_MAP(CAsr_fmtApp, CWinApp)
  22. //{{AFX_MSG_MAP(CAsr_fmtApp)
  23. //}}AFX_MSG
  24. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  25. END_MESSAGE_MAP()
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CAsr_fmtApp construction
  28. CAsr_fmtApp::CAsr_fmtApp()
  29. {
  30. }
  31. /////////////////////////////////////////////////////////////////////////////
  32. // The one and only CAsr_fmtApp object
  33. CAsr_fmtApp theApp;
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CAsr_fmtApp initialization
  36. BOOL CAsr_fmtApp::InitInstance()
  37. {
  38. int returnValue = ERROR_SUCCESS;
  39. AfxEnableControlContainer();
  40. // Standard initialization
  41. #ifdef _AFXDLL
  42. Enable3dControls(); // Call this when using MFC in a shared DLL
  43. #else
  44. Enable3dControlsStatic(); // Call this when linking to MFC statically
  45. #endif
  46. CAsr_fmtDlg dlg;
  47. m_pMainWnd = &dlg;
  48. returnValue = (int) dlg.DoModal();
  49. // for now never fail
  50. exit((BOOL) returnValue);
  51. return FALSE;
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CProgress
  55. CProgress::CProgress()
  56. {
  57. }
  58. CProgress::~CProgress()
  59. {
  60. }
  61. BEGIN_MESSAGE_MAP(CProgress, CProgressCtrl)
  62. //{{AFX_MSG_MAP(CProgress)
  63. // NOTE - the ClassWizard will add and remove mapping macros here.
  64. //}}AFX_MSG_MAP
  65. END_MESSAGE_MAP()
  66. /////////////////////////////////////////////////////////////////////////////
  67. // CProgress message handlers