www.pudn.com > SNMP·¶ÀýÔ´´úÂë.zip > DlgSet.cpp


// DlgSet.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "oam.h" 
#include "DlgSet.h" 
//#include "OAMDoc.h" 
 
#include "MainFrm.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgSet dialog 
 
 
CDlgSet::CDlgSet(CWnd* pParent /*=NULL*/) 
	: CDialog(CDlgSet::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CDlgSet) 
	m_sValue = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void CDlgSet::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CDlgSet) 
	DDX_Control(pDX, IDC_OID, m_COid); 
	DDX_Text(pDX, IDC_VALUE, m_sValue); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CDlgSet, CDialog) 
	//{{AFX_MSG_MAP(CDlgSet) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDlgSet message handlers 
 
 
BOOL CDlgSet::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
    	CWnd* pStatic = GetDlgItem(IDC_OID); 
		CString str1; 
		pMain->m_wndAddress.GetWindowText(str1); 
 
 
		str1=str1+_T(".") + "0";  
 
 
	pStatic->SetWindowText(str1); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}