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.

81 lines
2.5 KiB

  1. // DPSNMPDataPage.cpp : implementation file
  2. //
  3. // 03/05/00 v-marfin bug 59643 : Make this the default starting page.
  4. //
  5. #include "stdafx.h"
  6. #include "snapin.h"
  7. #include "DPSNMPDataPage.h"
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CDPSNMPDataPage property page
  15. IMPLEMENT_DYNCREATE(CDPSNMPDataPage, CHMPropertyPage)
  16. CDPSNMPDataPage::CDPSNMPDataPage() : CHMPropertyPage(CDPSNMPDataPage::IDD)
  17. {
  18. //{{AFX_DATA_INIT(CDPSNMPDataPage)
  19. // NOTE: the ClassWizard will add member initialization here
  20. //}}AFX_DATA_INIT
  21. }
  22. CDPSNMPDataPage::~CDPSNMPDataPage()
  23. {
  24. }
  25. void CDPSNMPDataPage::DoDataExchange(CDataExchange* pDX)
  26. {
  27. CHMPropertyPage::DoDataExchange(pDX);
  28. //{{AFX_DATA_MAP(CDPSNMPDataPage)
  29. // NOTE: the ClassWizard will add DDX and DDV calls here
  30. //}}AFX_DATA_MAP
  31. }
  32. BEGIN_MESSAGE_MAP(CDPSNMPDataPage, CHMPropertyPage)
  33. //{{AFX_MSG_MAP(CDPSNMPDataPage)
  34. ON_WM_DESTROY()
  35. //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CDPSNMPDataPage message handlers
  39. void CDPSNMPDataPage::OnDestroy()
  40. {
  41. CHMPropertyPage::OnDestroy();
  42. // v-marfin : bug 59643 : CnxPropertyPageDestory() must be called from this page's
  43. // OnDestroy function.
  44. CnxPropertyPageDestroy();
  45. }
  46. BOOL CDPSNMPDataPage::OnInitDialog()
  47. {
  48. // v-marfin : bug 59643 : This will be the default starting page for the property
  49. // sheet so call CnxPropertyPageCreate() to unmarshal the
  50. // connection for this thread. This function must be called
  51. // by the first page of the property sheet. It used to
  52. // be called by the "General" page and its call still remains
  53. // there as well in case the general page is loaded by a
  54. // different code path that does not also load this page.
  55. // The CnxPropertyPageCreate function has been safeguarded
  56. // to simply return if the required call has already been made.
  57. // CnxPropertyPageDestory() must be called from this page's
  58. // OnDestroy function.
  59. // unmarshal connmgr
  60. CnxPropertyPageCreate();
  61. CHMPropertyPage::OnInitDialog();
  62. // TODO: Add extra initialization here
  63. return TRUE; // return TRUE unless you set the focus to a control
  64. // EXCEPTION: OCX Property Pages should return FALSE
  65. }