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.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: chPin.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // chPin.cpp : Defines the class behaviors for the application.
  11. //
  12. #include "stdafx.h"
  13. #include "chPin.h"
  14. #include "chPinDlg.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CChangePinApp
  22. BEGIN_MESSAGE_MAP(CChangePinApp, CWinApp)
  23. //{{AFX_MSG_MAP(CChangePinApp)
  24. // NOTE - the ClassWizard will add and remove mapping macros here.
  25. // DO NOT EDIT what you see in these blocks of generated code!
  26. //}}AFX_MSG
  27. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  28. END_MESSAGE_MAP()
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CChangePinApp construction
  31. CChangePinApp::CChangePinApp()
  32. {
  33. // TODO: add construction code here,
  34. // Place all significant initialization in InitInstance
  35. }
  36. /////////////////////////////////////////////////////////////////////////////
  37. // The one and only CChangePinApp object
  38. CChangePinApp theApp;
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CChangePinApp initialization
  41. BOOL CChangePinApp::InitInstance()
  42. {
  43. // Standard initialization
  44. // If you are not using these features and wish to reduce the size
  45. // of your final executable, you should remove from the following
  46. // the specific initialization routines you do not need.
  47. #ifdef _AFXDLL
  48. Enable3dControls(); // Call this when using MFC in a shared DLL
  49. #else
  50. Enable3dControlsStatic(); // Call this when linking to MFC statically
  51. #endif
  52. CChangePinDlg dlg;
  53. m_pMainWnd = &dlg;
  54. int nResponse = dlg.DoModal();
  55. if (nResponse == IDOK)
  56. {
  57. // TODO: Place code here to handle when the dialog is
  58. // dismissed with OK
  59. }
  60. else if (nResponse == IDCANCEL)
  61. {
  62. // TODO: Place code here to handle when the dialog is
  63. // dismissed with Cancel
  64. }
  65. // Since the dialog has been closed, return FALSE so that we exit the
  66. // application, rather than start the application's message pump.
  67. return FALSE;
  68. }