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.

120 lines
3.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. PoliciesPage2.cpp
  6. Abstract:
  7. Implementation file for the CPoliciesPage2 class.
  8. We implement the class needed to handle the second property page for the Policies node.
  9. Revision History:
  10. mmaguire 12/15/97 - created
  11. --*/
  12. //////////////////////////////////////////////////////////////////////////////
  13. //////////////////////////////////////////////////////////////////////////////
  14. // BEGIN INCLUDES
  15. //
  16. // standard includes:
  17. //
  18. #include "Precompiled.h"
  19. //
  20. // where we can find declaration for main class in this file:
  21. //
  22. #include "PoliciesPage2.h"
  23. //
  24. //
  25. // where we can find declarations needed in this file:
  26. //
  27. //
  28. // END INCLUDES
  29. //////////////////////////////////////////////////////////////////////////////
  30. // Initialize the Help ID pairs
  31. const DWORD CPoliciesPage2::m_dwHelpMap[] =
  32. {
  33. // IDC_EDIT_CLIENT_PAGE1_NAME, IDH_CLIENT_PAGE1_NAME,
  34. // IDC_EDIT_CLIENT_PAGE1_IP1, IDH_CLIENT_PAGE1_IP,
  35. // IDC_EDIT_CLIENT_PAGE1_IP2, IDH_CLIENT_PAGE1_IP,
  36. // IDC_EDIT_CLIENT_PAGE1_IP3, IDH_CLIENT_PAGE1_IP,
  37. // IDC_EDIT_CLIENT_PAGE1_IP4, IDH_CLIENT_PAGE1_IP,
  38. // IDC_BUTTON_CLIENT_PAGE1_FIND, IDH_CLIENT_PAGE1_FIND,
  39. // IDC_EDIT_CLIENT_PAGE1_SHARED_SECRET, IDH_CLIENT_PAGE1_SHARED_SECRET,
  40. // IDC_EDIT_CLIENT_PAGE1_SHARED_SECRET_CONFIRM, IDH_CLIENT_PAGE1_SHARED_SECRET_CONFIRM,
  41. 0, 0
  42. };
  43. // MAM -- compiler really wants this in NAPSnapin.h -- don't know why yet
  44. //CPoliciesPage2::CClientsPage(TCHAR* pTitle = NULL)
  45. //{
  46. //
  47. //
  48. //}
  49. //////////////////////////////////////////////////////////////////////////////
  50. /*++
  51. CPoliciesPage2::OnInitDialog
  52. --*/
  53. //////////////////////////////////////////////////////////////////////////////
  54. LRESULT CPoliciesPage2::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  55. {
  56. ATLTRACE(_T("+NAPMMC+:# CPoliciesPage2::OnInitDialog\n"));
  57. // ISSUE: Is this the correct place to do this?
  58. // i.e. In this function? Before SendMessage?
  59. // SetDlgItemText(IDC_EDIT_MACHINE_PAGE2_AUTHENTICATION, TEXT("1442"));
  60. // ISSUE: Should this be here? Or is it only for wizard pages?
  61. // Do this only Only for wizards when you want the Finish button to be displayed
  62. //::SendMessage(GetParent(), PSM_SETWIZBUTTONS, 0, PSWIZB_FINISH);
  63. return TRUE; // ISSUE: what do we need to be returning here?
  64. }
  65. //////////////////////////////////////////////////////////////////////////////
  66. /*++
  67. CPoliciesPage2::OnApply
  68. --*/
  69. //////////////////////////////////////////////////////////////////////////////
  70. BOOL CPoliciesPage2::OnApply()
  71. {
  72. ATLTRACE(_T("+NAPMMC+:# CPoliciesPage2::OnApply\n"));
  73. // OnApply gets called for each page in on a property sheet if that
  74. // page has been visited, regardless of whether any values were changed
  75. // If you never switch to a tab, then its OnApply method will never get called.
  76. // BSTR MyString;
  77. // GetDlgItemText( IDC_EDIT_MACHINE_PAGE2_AUTHENTICATION , MyString );
  78. // ::MessageBox(NULL, (TCHAR *)MyString, _T("Current value of Authentication Port:"), MB_OK );
  79. // SysFreeString(MyString);
  80. return TRUE;
  81. }