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.

70 lines
2.0 KiB

  1. // EdtOne11.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "certmap.h"
  5. #include "brwsdlg.h"
  6. #include "EdtOne11.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CEditOne11MapDlg dialog
  14. CEditOne11MapDlg::CEditOne11MapDlg(CWnd* pParent /*=NULL*/)
  15. : CNTBrowsingDialog(CEditOne11MapDlg::IDD, pParent)
  16. {
  17. //{{AFX_DATA_INIT(CEditOne11MapDlg)
  18. m_sz_mapname = _T("");
  19. m_bool_enable = FALSE;
  20. //}}AFX_DATA_INIT
  21. }
  22. void CEditOne11MapDlg::DoDataExchange(CDataExchange* pDX)
  23. {
  24. //{{AFX_DATA_MAP(CEditOne11MapDlg)
  25. DDX_Text(pDX, IDC_MAPNAME, m_sz_mapname);
  26. DDV_MaxChars(pDX, m_sz_mapname, 60);
  27. DDX_Check(pDX, IDC_ENABLE, m_bool_enable);
  28. //}}AFX_DATA_MAP
  29. CNTBrowsingDialog::DoDataExchange(pDX);
  30. }
  31. BEGIN_MESSAGE_MAP(CEditOne11MapDlg, CNTBrowsingDialog)
  32. //{{AFX_MSG_MAP(CEditOne11MapDlg)
  33. ON_BN_CLICKED(IDC_BTN_HELP, OnBtnHelp)
  34. //}}AFX_MSG_MAP
  35. ON_COMMAND(ID_HELP_FINDER, OnBtnHelp)
  36. ON_COMMAND(ID_HELP, OnBtnHelp)
  37. ON_COMMAND(ID_CONTEXT_HELP, OnBtnHelp)
  38. ON_COMMAND(ID_DEFAULT_HELP, OnBtnHelp)
  39. END_MESSAGE_MAP()
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CEditOne11MapDlg message handlers
  42. //---------------------------------------------------------------------------
  43. // make sure that the selected NT acount is, in fact, a valid account
  44. //
  45. void CEditOne11MapDlg::OnOK()
  46. {
  47. // update the data
  48. UpdateData( TRUE );
  49. // it is valid
  50. CNTBrowsingDialog::OnOK();
  51. }
  52. //---------------------------------------------------------------------------
  53. void CEditOne11MapDlg::OnBtnHelp()
  54. {
  55. WinHelpDebug(HIDD_CERTMAP_BASIC_MAP_ONE);
  56. WinHelp( HIDD_CERTMAP_BASIC_MAP_ONE );
  57. }