82 lines
2.5 KiB
C++
82 lines
2.5 KiB
C++
|
// DPSNMPDataPage.cpp : implementation file
|
||
|
//
|
||
|
// 03/05/00 v-marfin bug 59643 : Make this the default starting page.
|
||
|
//
|
||
|
#include "stdafx.h"
|
||
|
#include "snapin.h"
|
||
|
#include "DPSNMPDataPage.h"
|
||
|
|
||
|
#ifdef _DEBUG
|
||
|
#define new DEBUG_NEW
|
||
|
#undef THIS_FILE
|
||
|
static char THIS_FILE[] = __FILE__;
|
||
|
#endif
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CDPSNMPDataPage property page
|
||
|
|
||
|
IMPLEMENT_DYNCREATE(CDPSNMPDataPage, CHMPropertyPage)
|
||
|
|
||
|
CDPSNMPDataPage::CDPSNMPDataPage() : CHMPropertyPage(CDPSNMPDataPage::IDD)
|
||
|
{
|
||
|
//{{AFX_DATA_INIT(CDPSNMPDataPage)
|
||
|
// NOTE: the ClassWizard will add member initialization here
|
||
|
//}}AFX_DATA_INIT
|
||
|
|
||
|
}
|
||
|
|
||
|
CDPSNMPDataPage::~CDPSNMPDataPage()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void CDPSNMPDataPage::DoDataExchange(CDataExchange* pDX)
|
||
|
{
|
||
|
CHMPropertyPage::DoDataExchange(pDX);
|
||
|
//{{AFX_DATA_MAP(CDPSNMPDataPage)
|
||
|
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||
|
//}}AFX_DATA_MAP
|
||
|
}
|
||
|
|
||
|
BEGIN_MESSAGE_MAP(CDPSNMPDataPage, CHMPropertyPage)
|
||
|
//{{AFX_MSG_MAP(CDPSNMPDataPage)
|
||
|
ON_WM_DESTROY()
|
||
|
//}}AFX_MSG_MAP
|
||
|
END_MESSAGE_MAP()
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CDPSNMPDataPage message handlers
|
||
|
|
||
|
void CDPSNMPDataPage::OnDestroy()
|
||
|
{
|
||
|
CHMPropertyPage::OnDestroy();
|
||
|
|
||
|
// v-marfin : bug 59643 : CnxPropertyPageDestory() must be called from this page's
|
||
|
// OnDestroy function.
|
||
|
CnxPropertyPageDestroy();
|
||
|
|
||
|
}
|
||
|
|
||
|
BOOL CDPSNMPDataPage::OnInitDialog()
|
||
|
{
|
||
|
// v-marfin : bug 59643 : This will be the default starting page for the property
|
||
|
// sheet so call CnxPropertyPageCreate() to unmarshal the
|
||
|
// connection for this thread. This function must be called
|
||
|
// by the first page of the property sheet. It used to
|
||
|
// be called by the "General" page and its call still remains
|
||
|
// there as well in case the general page is loaded by a
|
||
|
// different code path that does not also load this page.
|
||
|
// The CnxPropertyPageCreate function has been safeguarded
|
||
|
// to simply return if the required call has already been made.
|
||
|
// CnxPropertyPageDestory() must be called from this page's
|
||
|
// OnDestroy function.
|
||
|
// unmarshal connmgr
|
||
|
CnxPropertyPageCreate();
|
||
|
|
||
|
CHMPropertyPage::OnInitDialog();
|
||
|
|
||
|
// TODO: Add extra initialization here
|
||
|
|
||
|
return TRUE; // return TRUE unless you set the focus to a control
|
||
|
// EXCEPTION: OCX Property Pages should return FALSE
|
||
|
}
|