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.

88 lines
2.0 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. /*++
  3. Copyright (C) Microsoft Corporation, 1997 - 1999
  4. Module Name:
  5. PoliciesPage1.cpp
  6. Abstract:
  7. Implementation file for the CPoliciesPage1 class.
  8. We implement the class needed to handle the first 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 "PoliciesPage1.h"
  23. //
  24. //
  25. // where we can find declarations needed in this file:
  26. //
  27. //
  28. // END INCLUDES
  29. //////////////////////////////////////////////////////////////////////////////
  30. //////////////////////////////////////////////////////////////////////////////
  31. /*++
  32. CPoliciesPage1::OnInitDialog
  33. --*/
  34. //////////////////////////////////////////////////////////////////////////////
  35. LRESULT CPoliciesPage1::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  36. {
  37. ATLTRACE(_T("+NAPMMC+:# CPoliciesPage1::OnInitDialog\n"));
  38. return TRUE; // ISSUE: what do we need to be returning here?
  39. }
  40. //////////////////////////////////////////////////////////////////////////////
  41. /*++
  42. CPoliciesPage1::OnApply
  43. --*/
  44. //////////////////////////////////////////////////////////////////////////////
  45. BOOL CPoliciesPage1::OnApply()
  46. {
  47. ATLTRACE(_T("+NAPMMC+:# CPoliciesPage1::OnApply\n"));
  48. // OnApply gets called for each page in on a property sheet if that
  49. // page has been visited, regardless of whether any values were changed
  50. // If you never switch to a tab, then its OnApply method will never get called.
  51. // BSTR MyString;
  52. // GetDlgItemText( IDC_EDIT_MACHINE_PAGE1_NAME , MyString );
  53. // ::MessageBox(NULL, (TCHAR *)MyString, _T("Current value of Machine name:"), MB_OK );
  54. // SysFreeString(MyString);
  55. return TRUE;
  56. }